• Resolved petr.grobelny

    (@petrgrobelny)


    Hey guys, I know this was discussed many times but I cant find solution for removing the .header_section from the single post page.

    simple .header_section {display: none !important;} does not work. I was able to remove header from all other pages but when I open a post on a single page it is just there. Also I have tried this custom css: .single .header_section {display: none !important;}

    I have my pages on localhost for the moment so I cant share link to the page, but I am happy to share any code.

    THank you, Petr

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you’re using a child theme you can copy the single.php and the header.php file into your child theme. Rename your header.php file to header-single.php. You can then edit the header-single.php to appear the way you want.

    In your your single.php file you would change the get_header(); command to get_header(‘single’).

    The css command you listed should work .

    .header_section {
       display:none;
    }

    Thread Starter petr.grobelny

    (@petrgrobelny)

    Thank you for the quick reply. Actually I am not using child theme, I was mainly utilizing just the custom css Enigma lets you to edit.
    The header.php is rather “complex” so I am not sure how to edit it the way that I want…

    I guess I also dont understand why the code you have posted doesnt work in the first place? If the header is populated by get_header() in the single.php why cant I use this custom css to hide it?

    .single .header_section {display: none !important;}

    Is there a way to do it without child theme?

    Hi,

    It’s work here.

    Please deactivate all your plugin one by one and check it.

    Or please check the CSS that you provide are fully closed?

    Let us know for further assistance.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove header section from single post’ is closed to new replies.