 
	
		
		
		
		
			
Viewing 2 posts - 1 through 2 (of 2 total)
	
- 
		AuthorPosts
- 
		
			
				
June 23, 2016 at 9:38 pm #652749On my website on mobile, when I click the scroll lock to return to the top of the screen and then scroll down again, the scroll lock remains red and does not reset to the grey with an arrow until I click another dropdown box. Is the a code that can fix this to force a reset? Or even to make it so it doesn’t change color/remains static? Also, is it possible to change the height of how far the page scrolls back up – say 3/4 of the way instead of all the way to the top. Once you check out the link in the private content on a mobile device it’ll make more sense. June 28, 2016 at 4:18 am #654038Hey shawnbanack, Thank you for using Enfold. Please try this code in the functions.php file: // menu active function add_custom_script(){ ?> <script> (function($){ function h() { var lastId, menu = $("#faq-menu"), menuItems = menu.find("a"), // anchors corresponding to menu items activeItems = menuItems.map(function(){ var item = $($(this).attr("href")); if (item.length) { return item; } }); // bind to click $(menuItems).click(function(){ // get id of current scroll item var cur = menuItems.map(function(){ return this; }); // get the id of the current element cur = cur[cur.length-1]; var id = cur && cur.length ? cur[0].id : ""; if (lastId !== id) { lastId = id; // get/remove active class menuItems .removeClass("active") .end().filter("[href='#"+id+"']").addClass("active"); } }); } h(); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_script');And the following code in the Quick CSS field: .active .av-caption-image-overlay-bg { opacity: 0 !important; }Best regards, 
 Ismael
- 
		AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
	
- You must be logged in to reply to this topic.
