Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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 builder

    Here is my Website: http://www.beat-factory.com

    Thank you in advance!
    Best,
    Jeff

    #171443

    Hey 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 10 years, 6 months ago by Ismael.
    #171659

    Hello 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,
    Jeffrey

    #173338

    Hi 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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Title Attributes to Navigation and Buttons’ is closed to new replies.