• Hi,

    I have a problem with the Bushwick theme. I cannot fix the permalink-button “Read” showing on the front page – after every post. I tried to change the text in the button, but I couldn’t find the code in any of the php-files.

    Because I was unsuccesful I also tried to hide the button with custom CSS:

    .page .more-link {
    	display: none;
    }

    This doesn’t do the trick. How do you change the text OR hide the Read-button(s) on the first page?

    This is my site: https://www.kehonrakentamo.fi

Viewing 5 replies - 1 through 5 (of 5 total)
  • As I mentioned in the other thread:

    I don’t see a hidden “read more” link on your homepage, and a “permalink” isn’t the same thing. Could you please clarify exactly which element you’re trying to hide? Does it appear now?

    Are trying to change the theme language’s to something other than English? That requires a completely different process than hiding elements with CSS, so if that’s your goal please let me know and I can let you know how to accomplish it.

    Hello Kathryn, ??

    I had to hide the article for a while, but now there is a second article (with no title) but the button i′m referring is visible. I learned, that permalink was something totally different, sorry about that. The language of the page is finnish, and it has been installed with the finnish WP-version. At the point, there is nothing else in the page that should be changed – so I fiqured that it could me easier to hide the button element in custom CSS. By far I haven’t been able to, even I have been looking for the code to affect the:

    <a class="more-link" href="https://kehonrakentamo.fi/?p=158" title="" rel="bookmark">Read</a>

    Thanks for the additional details. If you simply want to hide the “Read” link only on the homepage, this should do it:

    .home .more-link {
      display: none;
    }

    Don’t edit the theme files directly, otherwise your changes will be overwritten when the theme is updated.

    An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    As alternatives, you could either install a standalone custom CSS plugin, or create a child theme.

    If you’d like to install the Finnish translation of the theme so that “Read” becomes “Lue” – it’s available for download here:

    https://translate.wordpress.com/projects/wpcom/themes/bushwick/fi/default

    If you need help installing it, let me know and I can outline the necessary steps.

    Thank you Kathryn!

    I got the button away with your custom CSS. Still, I′m curious how to install the Finnish translation pack. GlotPress looked a bit confusing to me. I you could outline the steps I would be more grateful than I already am. ??

    You can download the Finnish .mo file – which is what WordPress reads – at the bottom of the GlotPress page I linked above. Select the .mo file option from the dropdown menu, and click Export.

    There are a few different places you can upload the file.

    You can put it in the “languages” folder within Bushwick and it should be automatically recognized.

    If you go this route, please be aware that if you click the Update button within the dashboard when there’s a new version of Bushwick, you may overwrite your language file and it will disappear, and you’ll need to restore it.

    To avoid this, you can either do a manual update via FTP, being sure not to overwrite the languages folder, or you can create a child theme, so your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:

    https://codex.www.ads-software.com/Child_Themes
    https://op111.net/53/
    https://vimeo.com/39023468

    To use language files in a child theme you need to let the child theme know that these language files are there, by calling in the folder from your child theme’s functions.php file.

    If you don’t already have a functions.php in your child theme, create one in a plain-text editor (not a rich-text editor like Word) and add this bit of code right at the top:

    <?php
    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'bushwick', get_stylesheet_directory() . '/languages' );
    }

    If you already have a functions.php file in your child theme, add all the code above except the opening <?php tag.

    This function assumes you’ve placed your .mo file in a folder called “languages” within your child theme.

    Codex reference: https://codex.www.ads-software.com/Function_Reference/load_child_theme_textdomain

    Let me know how it goes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change "Read"-text or hide front page button after posts’ is closed to new replies.