Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1082755

    Hello boys!

    I have a question and I do not know how to solve it, I have a page in my charge that I need to change the label of the post slider, that instead of putting “Read more” I need you to put “Veure menu” but it is not always so, I need to one page put “veure menu” another page that says “veuren courses” and another “read more”, can you help me, pls?

    I’m sorry for my English, it’s a bit bad enough…

    Thanks!

    #1083924

    Hi jordialcover,

    Yes, unfortunately there’s option for that yet in Enfold.
    You’ll need to modify this file: wp-content > themes > enfold > config-templatebuilder > avia-shortcodes > postslider > postslider.php and find this code:

    $permalink = '<div class="read-more-link"><a href="'.get_permalink($the_id).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"></span></a></div>';

    replace it with:

    
    $permalink_text = 'read more';
    
    if( is_page( array( 1, 2, 3 ) ) ) {
      $permalink_text = 'veure menu';
    } elseif( is_page( array( 4, 5, 6 ) ) ) {
      $permalink_text = 'veuren courses';
    }
    
    $permalink = '<div class="read-more-link"><a href="'.get_permalink($the_id).'" class="more-link">'. $permalink_text .'<span class="more-link-arrow"></span></a></div>';

    Just replace the numbers inside:

    array( 1, 2, 3 )

    with the right page ids. Hope this helps.

    Best regards,
    Nikko

    #1085515

    Thank you, Nikko, as soon as I can I look at it and communicate results!
    =D

    #1085525

    Hi jordialcover,

    We’re happy to help you :)
    We’ll keep this thread and wait for your feedback.

    Best regards,
    Nikko

    #1086640

    Hi Nikko

    Solve it! Thanks for solution!!! its nice! good job!

    #1086763

    Hi jordialcover,

    We’re glad that we could help :)
    Thanks for using Enfold an have a great day!

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Read More change label’ is closed to new replies.