-
AuthorPosts
-
December 15, 2017 at 5:29 am #889191
Greetings, I’m wanting to change the font-size and color for the menu items for the Full Width Sub Menu Element on the following site: http://rahmanaelizabethsayre.com/. I’m using the element on nearly each page of the site and I would like the styling to apply globally (to each and every usage). Can you help?
For your information I’ve added some code per one of the support threads to the functions.php file. The file code now looks like this:
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/
add_filter(‘avf_logo_final_output’, ‘avia_remove_default_logo’, 10, 6);
function avia_remove_default_logo($logo, $use_image, $headline_type, $sub, $alt, $link){
return ”;
}//set builder mode to debug
add_action(‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug()
{
return “debug”;
}
//One page nav highlightfunction activateMenuItem(){
?>
<script>
jQuery(document).scroll(function() {
var sections = jQuery(‘.avia-section’),
menu = jQuery(‘.av-submenu-container’),
nav_height = menu.outerHeight();
jQuery(window).on(‘scroll’, function() {
var cur_pos = jQuery(this).scrollTop();
sections.each(function() {
var top = jQuery(this).offset().top – 300,
bottom = top + jQuery(this).outerHeight();
if (cur_pos >= top && cur_pos <= bottom) {
menu.find(‘a’).removeClass(‘active-menu-item’);
menu.find(‘a[href=”#’ + jQuery(this).attr(‘id’) + ‘”]’).addClass(‘active-menu-item’);
}
});
});
});</script>
<?php
}
add_action(‘wp_head’, ‘activateMenuItem’);
____________Thank you …
December 16, 2017 at 6:42 pm #889629Hey ajaxkls,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#top .av-subnav-menu a .avia-menu-text { color: #666; font-size: 16px; }
If you need further assistance please let us know.
Best regards,
VictoriaDecember 17, 2017 at 12:17 am #889721Thank you!
December 17, 2017 at 12:52 am #889726 -
AuthorPosts
- You must be logged in to reply to this topic.