Tagged: Buttons, easy slider
-
AuthorPosts
-
June 27, 2023 at 8:36 pm #1411891
Hello there. Is there a way to attach a third button in the Easy Slider? Thank you!
June 28, 2023 at 7:13 am #1411925Hi NCATIT,
Unfortunately, there’s no easy way to add a third button on the Easy Slider, since you will need to modify core files in Enfold to be able to change it which might break parts of the site in the process.
Best regards,
NikkoJune 28, 2023 at 2:36 pm #1411954Thanks for the info Nikko, would there be any way to do it with a child theme?
June 29, 2023 at 3:26 pm #1412073Hi NCATIT,
I didn’t find a way to do it via a child theme since you’ll need to tweak some core files to do this tweak, if you know some PHP programming then I can point you to it, but it will be too risky and I don’t suggest it since it might affect some areas of the website and you will need to do the tweak after every theme update.
Best regards,
NikkoJune 29, 2023 at 3:38 pm #1412074Hi Nikko, I’m a PHP/Wordpress developer, so your solution sounds OK to me. I don’t mind adding the code after each update.
Please send any snippets you might have and I’ll test on a staging site.
I very much appreciate your help. Thank you!June 29, 2023 at 3:52 pm #1412076Hi NCATIT,
That’s nice, the file you need to edit is enfold\config-templatebuilder\avia-template-builder\php\class-popup-templates.php and find this function slideshow_button_links (line 759 in Enfold 5.6.3), just copy those arrays from Button 2 Label to Button 2 Link Target (line 844 – 895), add a comma after the closing parenthesis in line 895 and paste the whole button 2 arrays, then replace the labels with Button 3 and then replace the id as well.
I hope it helps.Best regards,
NikkoJune 30, 2023 at 3:22 am #1412122Hello again Nikko, hope all is well.
Your tip sets up admin interface to accept a third button, but the third button doesn’t show up on the front end. What am I missing?
Thank you so much.June 30, 2023 at 12:53 pm #1412158Hi NCATIT,
I see, just so we use the same thing, please use the following codes:
– enfold\config-templatebuilder\avia-template-builder\php\class-popup-templates.php -> https://pastebin.com/zKJPDgQA
– enfold\config-templatebuilder\avia-shortcode-helpers\class-avia-slideshow.php -> https://pastebin.com/v3VT5BnJAnd finally, add this CSS code in Quick CSS:
.avia-multi-slideshow-button.avia-slideshow-button-2 { margin-right: 20px; }
Hope it helps.
Note for other Enfold users: the changes is not recommended since both files are core, do it at your own risk.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.