[Resolved] The “Read More” buttons have disappeared

Home Forums Support [Resolved] The “Read More” buttons have disappeared

Home Forums Support The “Read More” buttons have disappeared

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2293336
    carles

    Hello… The “Read More” (??) buttons have disappeared. They are selected in “personalization”, I don’t know what happened.

    Hola… Han desaparecido los botones “Leer Más” (??). Están seleccionados en “personalización”, no sé que ha pasado.

    #2293341
    Leo
    Staff
    Customer Support
    #2293370
    carles

    Okay. I understand that I should put this code:

    —————————————————————–

    add_filter( ‘wp_trim_excerpt’, ‘tu_excerpt_metabox_more’ );
    function tu_excerpt_metabox_more( $excerpt ) {
    $output = $excerpt;

    if ( has_excerpt() ) {
    $output = sprintf( ‘%1$s <p class=”read-more-button-container”>%3$s</p>’,
    $excerpt,
    get_permalink(),
    __( ‘Read more’, ‘generatepress’ )
    );
    }

    return $output;
    }

    ————————————————————

    But where should I put it? Under “Customization > Additional CSS?” or in “Elements > Hook”?

    #2293397
    carles

    Ok, ok, I have put the code in the Code Snippets plugin and it works. Thank you

    #2294301
    Leo
    Staff
    Customer Support
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.