Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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 9 years, 10 months ago by parperei. Reason: removed doubled "a"
    #369448

    Hey 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ünter

    #370529

    Dear 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 9 years, 10 months ago by parperei.
    #370914

    Hi!

    Replace buttons.php contents with this:
    https://gist.github.com/josueochoa/72615b7628f72449afcf

    Cheers!
    Josue

    #376066

    Dear 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!

    #376143

    Hi!

    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,
    Yigit

    #376857

    Dear 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?

    #376861
    #376885

    Dear Yigit,

    thank you once more! This information solved my problem and I learned to remind it for future requests.

    Happy daze!

    #376886

    Hey!

    You are welcome, we are always glad to help :) Happy daze to you as well!

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘How to add a link title to a shortcode button?’ is closed to new replies.