WordPress.org

Forums

Spacious
Change Read More button language + Footer theme name (12 posts)

  1. oliviaontheriviera
    Member
    Posted 9 months ago #

    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.]

  2. summerchilde
    Member
    Posted 9 months ago #

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

  3. oliviaontheriviera
    Member
    Posted 9 months ago #

    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

  4. summerchilde
    Member
    Posted 9 months ago #

    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.

  5. oliviaontheriviera
    Member
    Posted 9 months ago #

    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

  6. summerchilde
    Member
    Posted 9 months ago #

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

  7. oliviaontheriviera
    Member
    Posted 9 months ago #

    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>';
    }
  8. summerchilde
    Member
    Posted 9 months ago #

    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.

  9. oliviaontheriviera
    Member
    Posted 9 months ago #

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

  10. summerchilde
    Member
    Posted 9 months ago #

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

  11. oliviaontheriviera
    Member
    Posted 9 months ago #

    no. where and how do i do this?
    thanks

  12. oliviaontheriviera
    Member
    Posted 8 months ago #

    Any ideas?
    Thanks

Reply

You must log in to post.

About this Theme

About this Topic