-
AuthorPosts
-
March 25, 2019 at 4:47 pm #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!
March 28, 2019 at 6:22 am #1083924Hi 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,
NikkoApril 1, 2019 at 2:02 pm #1085515Thank you, Nikko, as soon as I can I look at it and communicate results!
=D-
This reply was modified 6 years, 7 months ago by
jordialcover.
April 1, 2019 at 2:15 pm #1085525Hi jordialcover,
We’re happy to help you :)
We’ll keep this thread and wait for your feedback.Best regards,
NikkoApril 3, 2019 at 5:56 pm #1086640Hi Nikko
Solve it! Thanks for solution!!! its nice! good job!
April 4, 2019 at 6:12 am #1086763Hi jordialcover,
We’re glad that we could help :)
Thanks for using Enfold an have a great day!Best regards,
Nikko -
This reply was modified 6 years, 7 months ago by
-
AuthorPosts
- The topic ‘Read More change label’ is closed to new replies.
