• Resolved TMCSaint

    (@tmcsaint)


    Trying to set up so that if I am not looking at my homepage the content floods the width of the page. I have the code below in my header.php file:

    <?php is_front_page(); ?>
       echo '<style type="text/css">#content{width:100%;}</style>';
     <?php endif; ?>

    But that only shows a blank screen when I view the page. What am I missing?

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

The topic ‘Conditional CSS’ is closed to new replies.