Re: Hide Header & Footer BUG

Solved

Why won't my code hide the header on both pages?

comvert
Visitor
3 0 0

I've inserted the following code to hide/remove the header and footer sections on two specific pages, but there seems to be a bug. Whatever I do, the footers hide successfully, but the header is only removed from one page and not the other. 

            <style>
#chocolate-tubeez .header{
    display: none !important;
}

#chocolate-tubeez .footer{
    display: none !important;
}

            <style>
#vanilla-tubeez .header{
    display: none !important;
}

#vanilla-tubeez .footer{
    display: none !important;
}

 

 

 

 

Accepted Solution (1)
wattsmork
Shopify Partner
26 8 7

This is an accepted solution.

@comvert Please replace code like this

 

<style>
    #chocolate-tubeez .header{
        display: none !important;
    }

    #chocolate-tubeez .footer{
        display: none !important;
    }

    #vanilla-tubeez .header{
        display: none !important;
    }

    #vanilla-tubeez .footer{
        display: none !important;
    }
</style>

View solution in original post

Replies 4 (4)

wattsmork
Shopify Partner
26 8 7

Hi @comvert ,

 

Could you share your store url please?

 

Thanks

comvert
Visitor
3 0 0

yoso.ca

wattsmork
Shopify Partner
26 8 7

This is an accepted solution.

@comvert Please replace code like this

 

<style>
    #chocolate-tubeez .header{
        display: none !important;
    }

    #chocolate-tubeez .footer{
        display: none !important;
    }

    #vanilla-tubeez .header{
        display: none !important;
    }

    #vanilla-tubeez .footer{
        display: none !important;
    }
</style>
comvert
Visitor
3 0 0

This worked, thank you very much.