Can posts look different from other pages?
-
Hi,
Is there a way to make the border under the nav bar one color for all single blog posts and a different color for all other pages?
I tried adding
<?php if(is_single()) { #access a { border-bottom: 1px solid #f00000; } } else { #access a { border-bottom: 1px solid #000000; } ?>
to style.css but that makes the border disappear on all pages, and anyway I don’t even know if .css files can handle php code.
I also tried adding
#access a { border-bottom: 1px solid #f00000; }
to single.php, but that makes single post pages come up blank, and anyway I don’t even know if .php files can handle css code.
Maybe you can tell I am new to css and php.
Thanks,
Matt
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can posts look different from other pages?’ is closed to new replies.