PHP-coding help: how to exclude and include divs
-
Hi there!
I have one div, that I want to appear on my homepage, and another div that should only appear on the other pages in the same location.
I’ve got the first part right with the following code, but I don’t know how to get the other div when I am not on home:
`
<?php if (is_home()) echo ‘<div id=”whitepaper”><h2 class=”description”>text</h2></div>’; ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP-coding help: how to exclude and include divs’ is closed to new replies.