Hello,
I would like to add a TITLE adjacent left justified to my Fullwidth Sub Menu.
Can you please show me how or rather send the instructions?
Thanks so much,
jnot75
Hey jnot75,
Please try the following in Quick CSS under Enfold->General Styling:
.av-subnav-menu:before {
content: 'Title';
float: left;
padding: 10px 0 0 10px;
}
Best regards,
Rikard
That worked!
What if the TITLE is different on every page?
Thanks so much
Hey,
You can use the code as following where “page-id-30” is the ID of your page :)
.page-id-30 .av-subnav-menu:before {
content: 'Title';
float: left;
padding: 10px 0 0 10px;
}
Regards,
Yigit
Awesome! Thanks so much!
Edit : I must have been somewhat misguided by the headline. One should read just yet also the content ;)
I had thought that you wanted to set the Title attribute at the submenu list item.
_________________
forget about that here:
or you put this to your child-theme functions.php:
function set_menu_text_as_title(){
?>
<script>
(function($){
$('.av-subnav-menu a').each(function(){
var menuName = $(this).find('>.avia-menu-text').text();
$(this).attr('title', menuName);
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'set_menu_text_as_title');
but for me the alt attribute is much more important – so i have on that line instead:
$(this).attr('alt', menuName);