Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #400275

    I would like the Sticky Header on main page, but on all the other pages I would like to remove Sticky Header as you scroll down

    • This topic was modified 9 years, 10 months ago by blonddragon.
    #400289

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_action( 'wp_header',  'change_sticky_header', 10);
    function change_sticky_header() {
    	if(!is_home()){
    	?>
    	<style>
    		.html_header_top.html_header_sticky #header {
    		    position: static;
    		}
    		.html_header_top.html_header_sticky #top #wrap_all #main {
    		    padding-top: 0;
    		}
    	</style>
    	<?php
    	}
    }

    Cheers!
    Josue

    #400299
    This reply has been marked as private.
    #400319

    Hey!

    Thanks for the access, the mod should work now.

    Regards,
    Josue

    #400340

    Thank you!!

    great turn around!!!!!!

    #400357

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.