Viewing 8 replies - 1 through 8 (of 8 total)
  • open header.php and add this, be carefull, preserve of the order of the elements in the markup.

    <?php 	if ( is_home() ) { ?>
    
    place what elements you want in the homepage
    
    <?php } ?>
    Thread Starter froufroubijou

    (@froufroubijou)

    its also a static page…

    try `<?php if ( is_home() || is_page( ‘your-page-slug’ ) ) { ?>

    place what elements you want in the homepage

    <?php } ?>`

    Thread Starter froufroubijou

    (@froufroubijou)

    do you know what line of code i should put that on. someone reccomended line 77 and use this code as well, but it didn’t work

    how do i write the page slug? with commas?

    <?php if ( is_home() ) { ?>

    <img src=”<?php header_image(); ?>” width=”<?php echo HEADER_IMAGE_WIDTH; ?>” height=”<?php echo HEADER_IMAGE_HEIGHT; ?>” alt=”” />

    <?php } ?>

    Thread Starter froufroubijou

    (@froufroubijou)

    has anyone ever done this before?

    you must use the commas, like <?php if ( is_home() || is_page( ‘contact’ ) ) { ?>

    Thread Starter froufroubijou

    (@froufroubijou)

    I actually used css and it seemed to work for the pages

    such as

    .page-id-488 #branding { display:none; }

    what should i write for categories?
    .product-cat-backpacks-2 ?

    can’t seem to find a number for it

    it depends, check the sorce code of the page you are trying to target, and see if there is any class you can use, in the body

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘remove header from other pages’ is closed to new replies.