Skip to content

Instantly share code, notes, and snippets.

@malachi358
Created May 20, 2013 01:48
Show Gist options
  • Save malachi358/5609952 to your computer and use it in GitHub Desktop.
Save malachi358/5609952 to your computer and use it in GitHub Desktop.
Show div by page id in PHP for Worpdress.
<?php if( is_page(4) ) { ?>
<div id="yourId" class="yourClass">You Info</div>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment