-
AuthorPosts
-
December 17, 2014 at 12:22 pm #369422
Dear all,
I need to add a href-title to a shortcode button.
Is this somehow possible?
I use a child theme.Kind regards!
- This topic was modified 10 years ago by parperei. Reason: removed doubled "a"
December 17, 2014 at 1:37 pm #369448Hey parperei!
Thank you for coming back.
Not out of the box. You must edit the file:
enfold\config-templatebuilder\avia-shortcodes\buttons.php
Regards,
GünterDecember 19, 2014 at 12:54 pm #370529Dear Günter,
thanks for your suggestion. I added this as a feature request. But apart from that, may you assist me to add the needed code?
I already created the directories “config-templatebuilder\avia-shortcodes” in my child-theme.
I think in “buttons.php” I need to add some code to line 34 following (new array for entering the link title in the backend?) and lines 284 following (output):
$output = ""; $output .= "<a href='{$link}' title='???'>class_by_arguments('icon_select, color, size, position' , $atts, true)."' {$blank} {$style} >"; $output .= $content_html; $output .= "</a>"; $output = "<div class='avia-button-wrap avia-button-".$atts['position']." ".$meta['el_class']."'>".$output."</div>";
But I have to admit I can’t. :) May you assist me with that?
- This reply was modified 10 years ago by parperei.
December 20, 2014 at 5:58 am #370914Hi!
Replace buttons.php contents with this:
https://gist.github.com/josueochoa/72615b7628f72449afcfCheers!
JosueJanuary 7, 2015 at 11:53 am #376066Dear Josue,
happy new year, sorry for the delay and thank you for your help with my problem.
Other tasks occured, which is why I need to put this task on hold.
I saved the buttons.php from github and will reply as soon as I was able to test it.
Kind regards!
January 7, 2015 at 2:47 pm #376143Hi!
We will keep the thread open. Please let us know after you try so we can mark the thread as resolved or assist you further. Until you reply, thread will be on hold.
Happy new year to you as well :)Best regards,
YigitJanuary 8, 2015 at 4:56 pm #376857Dear all,
after putting the delivered “buttons.php” in the enfold-theme-directory, it works as intended.
But I will loose it with the next update.Adding the “buttons.php” to my child-theme-folder inside the directory “config-templatebuilder/avia-shortcodes”, does not add the input for “Button Link Title”.
Is there something I additionally need to do, to make use of the buttons.php inside my child-theme-folder/config-templatebuilder/avia-shortcodes?
January 8, 2015 at 4:57 pm #376861Hey!
Please see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Cheers!
YigitJanuary 8, 2015 at 5:14 pm #376885Dear Yigit,
thank you once more! This information solved my problem and I learned to remind it for future requests.
Happy daze!
January 8, 2015 at 5:15 pm #376886 -
AuthorPosts
- The topic ‘How to add a link title to a shortcode button?’ is closed to new replies.