-
AuthorPosts
-
June 24, 2019 at 3:50 pm #1112939
Hi,
I read a previous post that has enabled me to add title attributes to single buttons (to help with SEO):
https://kriesi.at/support/topic/title-attributes-to-navigation-and-buttons/Changing the code works perfectly well with single buttons but the solution was provided before you introduced “Button Rows” into your theme. Do you have a similar solution that will enable me to add title attributes to button rows please?
Thanks in advance.
June 25, 2019 at 4:23 pm #1113274Hey StormWebDesign,
No, we don’t but you can look at this file to make changes there
/enfold/config-templatebuilder/avia-shortcodes/buttonrow/buttonrow.phpBest regards,
VictoriaJuly 1, 2019 at 6:17 pm #1114951Thank you Victoria. Much appreciated.
July 2, 2019 at 9:00 am #1115086Hi,
Thanks for the feedback, please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJuly 2, 2019 at 10:07 am #1115115Hi Rikard,
Thanks for your message, but I’m still struggling with this one.
I edited /config-templatebuilder/avia-shortcodes/buttons/button.php with the following code which does add a link title to single buttons:
$output = “”;
$output .= “class_by_arguments(‘icon_select, color, size, position’ , $atts, true).”‘ {$blank} {$style} >”;
$output .= “<span class=’avia_button_icon’ {$display_char}></span>”;
$output .= “<span class=’avia_iconbox_title’ >”.$atts[‘label’].”</span>”;
$output .= ““;However, the code in /config-templatebuilder/avia-shortcodes/buttonrow/buttonrow.php is slightly different to the single button code. I can see that it’s not too complicated, I just don’t want to break the site.
Thanks Rikard,
JohnnyJuly 5, 2019 at 12:21 pm #1116028Hi,
In file enfold\config-templatebuilder\avia-shortcodes\buttonrow\buttonrow.php at the bottom look for:
$output .= "<a href='{$link}' {$data} class='avia-button {$extraClass} " . $this->class_by_arguments('icon_select, color, size', $atts, true) . "' {$blank} {$style} >";
and replace with:
$output .= "<a title='{$atts['label']}' href='{$link}' {$data} class='avia-button {$extraClass} " . $this->class_by_arguments('icon_select, color, size', $atts, true) . "' {$blank} {$style} >";
Could be that adding a title to buttons will become part of the core. Check for changelog and options in the elements.
Best regards,
Günter -
AuthorPosts
- You must be logged in to reply to this topic.