Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #981183
    Mike Harrison
    Participant

    Hi,

    I’m trying to modify the read more link by using the ‘the_content_more_link’ filter hook. It is not working and I’m speculating that it’s because I need to remove a filter from the theme first so I can override in my child theme.

    Any suggestions?

    #981187
    Mike Harrison
    Participant

    Apologies, this is why I love this theme because it is so well documented in-line that I can easily find things! Sorry for posting too soon, because I just found the filter.

    Anyone wondering how to do this the function is called ‘x_content_string’.

    Then this will work:

    remove_filter( 'the_content_more_link', 'x_content_string' );
    add_filter( 'the_content_more_link', 'mycustom_the_content_more_link' );
    function mycustom_the_content_more_link(){
      return 'custom string here';
    }
    #981211
    Thai
    Moderator

    Glad you’ve sorted it out.

    If you need anything else, please let us know 🙂

  • <script> jQuery(function($){ $("#no-reply-981183 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>