• Resolved bryanek

    (@bryanek)


    Hi!

    I can’t find the file responsible for Read More link in recent post excerpt definition. Here https://docs.kadencethemes.com/pinnacle/ I found that it should be as easy as editing it in “Language Settings”. The problem is I don’t have “Language Settings” in my Theme Options ?? Please help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Ben Ritner – Kadence WP

    (@britner)

    Hey,
    Unfortunately Language settings is part of the premium theme.

    With the free the read more is added with a function and if you wanted to edit you would have to override with a function, it’s not in a template file. So In your child theme you can add this:

    remove_filter('excerpt_more', 'pinnacle_excerpt_more');
    function kt_custom_excerpt_more($more) {
      $readmore =  __('Read More', 'pinnacle') ;
      return ' &hellip; <a href="' . get_permalink() . '">'. $readmore . '</a>';
    }
    add_filter('excerpt_more', 'kt_custom_excerpt_more');

    Hope that helps,

    Kadence Themes

    Thread Starter bryanek

    (@bryanek)

    It worked, thank you! All the best!

    Hmm, it doesn’t work for me. I’m pasting the above code in my functions.php (in child theme) and I’m changing the ‘Read More’ with no effect.

    Any clue why?

    I found out why it didn’t work. I had to modify Kadence Themes code posted above. I spent 4 hours on this…. If anyone stumbles upon this post looking to change the “Read More” text and the above code doesn’t work for them, try this:

    function kt_custom_excerpt_more($more) {
      $readmore =  __('YOUR TEXT HERE', 'pinnacle') ;
      return ' … <a href="' . get_permalink() . '">'. $readmore . '</a>';
    }
    
    function varin_excerpt_more()  {
    remove_filter('excerpt_more', 'pinnacle_excerpt_more');
    add_filter('excerpt_more', 'kt_custom_excerpt_more');
    }
    
    add_action( 'after_setup_theme', 'varin_excerpt_more' );

    Thanks, This was helpful!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Language Settings / Read More edit’ is closed to new replies.