• Hi all,

    Is there a way I can call different styles in my header.php using ‘if’ & ‘else’?

    I need to do it for my homepage, so Can I use:


    <?php if (is_page(home)) { ?>

    stuff here

    <?php } else { ?>

    stuff here

    <?php } ?>

    Will this be correct?

    Thankyou

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘header.php Can use ‘if’ & ‘else’?’ is closed to new replies.