is_page tag not working properly
-
I can’t seem to figure out why the is_page tag isn’t working correctly. Is there anything that anyone else can see below that I am missing? Thanks for the help!
(`<body>
<div class=”section” id=”header”>
<div class=”holder”>
<img src=”<?php bloginfo(‘template_directory’);?>/images/header/logo-enigma.jpg” width=”200″ height=”51″ alt=”Enigma Logo” id=”logo” />
<ul id=”menu”>
<li <?php if(is_page(‘About’)) { echo ‘id=”menu-current”‘; } ?>>/about/” id=”menu-about”>ABOUT
<li <?php if(is_home()) { echo ‘id=”menu-current”‘; } ?>>/blog/” id=”menu-blog”>BLOG
<li <?php if(is_page(‘Work’)) { echo ‘id=”menu-current”‘; } ?>>/work/” id=”menu-work”>WORK
<li <?php if(is_page(‘Contact’)) { echo ‘id=”menu-current”‘; } ?>>/contact/” id=”menu-contact”>CONTACT
</div><!– /holder –>
</div><!– /section header –>`)
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘is_page tag not working properly’ is closed to new replies.