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 } ?>
try `<?php if ( is_home() || is_page( ‘your-page-slug’ ) ) { ?>
place what elements you want in the homepage
<?php } ?>`
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 } ?>
has anyone ever done this before?
you must use the commas, like <?php if ( is_home() || is_page( ‘contact’ ) ) { ?>
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