0

I'm trying to add page specific css in the head. For some reason the page completely goes white when I use the code below:

<?php if (is_page(5)) {
        <style>
        </style>
    } ?>

1 Answer 1

1

<style> is not right PHP syntax. Try this:


<?php if (is_page(5)) { ?>
    <style>
    </style>
<?php  } ?>
Sign up to request clarification or add additional context in comments.

1 Comment

You nailed it in one. Thanks for the quick response Sebastian!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.