Support » Theme: Spacious » Change Read More button language Footer theme name

  • Hi there,
    1. I am running this theme on a website which is currently in French so I’d like to change the code of the “Read More” buttons to French text. Where can do this?
    2. Where can I remove “Theme by: ThemeGrill Powered by: WordPress” that appears in the footer?
    Thanks for your help

    [Moderator Note: No bumping, thank you.]

Viewing 11 replies - 1 through 11 (of 11 total)
  • summerchilde

    (@summerchilde)

    Create a child theme and copy over the appropriate files you want to edit then edit those files directly.

    oliviaontheriviera

    (@oliviaontheriviera)

    Hi summerchilde,
    Thanks for your reply. I had gotten that far but am not sure in which file would I find the code to change and what would I change it to? (I’m starting out with WordPress) …

    thanks

    summerchilde

    (@summerchilde)

    Hi
    First, if you haven’t already, read how to make a child theme here: http://codex.wordpress.org/Child_Themes

    After you’ve created the child theme just copy over the footer.php and edit line 21 for the footer copyright. Then, to fix the read more, read this: http://codex.wordpress.org/Customizing_the_Read_More You’ll need to find which file in the theme uses ‘<?php the_excerpt(); ?>’ and edit that file most likely.

    oliviaontheriviera

    (@oliviaontheriviera)

    Thanks for your reply,
    Found this in the codex page => Modify The Read More Link Text
    Adding this code to your functions file enables you to customize the read more link text.

    add_filter( 'the_content_more_link', 'modify_read_more_link' );
    function modify_read_more_link() {
    return '<a class="more-link" href="' . get_permalink() . '">Your Read More Link Text</a>';
    }

    I added it to the child theme functions.php file at the end but it doesn’t work. the code just appeared on the website. Any idea what I’m doing wrong?
    Thanks

    summerchilde

    (@summerchilde)

    did you put that code inside a ‘<?php and ?>’ ?

    oliviaontheriviera

    (@oliviaontheriviera)

    i copied the following at the end of the php file

    ?>
    add_filter( 'the_content_more_link', 'modify_read_more_link' );
    function modify_read_more_link() {
    return '<a class="more-link" href="' . get_permalink() . '">Plus</a>';
    }

    summerchilde

    (@summerchilde)

    your functions.php of the child theme should only have:

    <?php
    
    add_filter( 'the_content_more_link', 'modify_read_more_link' );
    function modify_read_more_link() {
    return '<a href="' . get_permalink() . '">Plus</a>';
    
    ?>

    [Moderator Note: Please post code & markup between backticks (not single quotes) or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    without those backticks (‘), of course.

    oliviaontheriviera

    (@oliviaontheriviera)

    this does not work. i noticed there is another function php file called inc/functions.php
    could this be the issue?

    summerchilde

    (@summerchilde)

    I doubt it. Have you tried editing the ‘<?php the_excerpt(); ?>’ instead?

    oliviaontheriviera

    (@oliviaontheriviera)

    no. where and how do i do this?
    thanks

    oliviaontheriviera

    (@oliviaontheriviera)

    Any ideas?
    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Change Read More button language Footer theme name’ is closed to new replies.