Tagged: Buttons, navigation
-
AuthorPosts
-
October 6, 2013 at 7:15 pm #171245
Hi support-team
i hope you can help me with my issue!
i would like to add “title-attributes”:
1) to my pagelinks in my navigation bar in the top and the bottom navigation lists
2) to my Logo in the header, which links back to the homepage
3) to the Buttons on my homepage i created with the avia layout builderHere is my Website: http://www.beat-factory.com
Thank you in advance!
Best,
JeffOctober 7, 2013 at 4:56 am #171443Hey beat-factory!
1.) Go to Appearance > Menus, edit each menu item to add a Title Attribute.
2.) Go to Settings > General > Site Title. The text you input on the field will be use as the logo title attribute.
3.) Edit config-templatebuilder > avia-shortcodes > button.php, find this code starting on line 225:
$output = ""; $output .= "<a href='{$link}' class='avia-button ".$this->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 .= "</a>";
Replace it with:
$output = ""; $output .= "<a title='".$atts['label']."' href='{$link}' class='avia-button ".$this->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 .= "</a>";
The button’s “button label” will be use as the title attribute for the button element.
Regards,
Ismael- This reply was modified 11 years, 2 months ago by Ismael.
October 7, 2013 at 3:36 pm #171659Hello Ismael,
thank you. Everything worked great.
There is only one more thing: I need the title attributes of the buttons to be different than the button’s label.
How can i do that?
Thank you for your help!
Best Regards,
JeffreyOctober 10, 2013 at 1:53 am #173338Hi Jeffrey!
That would require being able to set two labels in each occurrence, and that requires a deeper customization to the backend, unfortunately that’s out of the scope of this support forum, if you really need try hiring a freelance for the job.
Cheers!
Josue -
AuthorPosts
- The topic ‘Title Attributes to Navigation and Buttons’ is closed to new replies.