<?php the_ID(); ?> in css?
-
I’m currently using the Minimal horizontal theme on a website I’m building. In index.php I added the code
<div id="<?php the_ID(); ?>">to line 11 so that in functions.php I could add<li><a href="#78">A-Z</li>. What this does is add an entry to the footer navigation that allows me to skip to a particular blog post, in this case post 78.What I’m wondering now is how do I reference
<div id="<?php the_ID(); ?>"> in style.css>? I tried adding the code <div id=”<?php the_ID(); ?>”> {background:#000000;} and it does nothing. Is there any way to fix this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘<?php the_ID(); ?> in css?’ is closed to new replies.