Using the WordPress Page Name as a Body Tag ID

This is my first tutorial. Ever. So please let me know if there is anything that needs improving or if you have any questions, comments, or suggestions. That said, I hope this helps someone out!

I’ve found that it’s often easier to work on a webpage with body tag ID’s. Luckily, you can add these automatically to every page in WordPress! Now if you need to style your Blog page elements differently than your Contact page, you can simply add the #Blog selector to any rules that apply specifically to your Blog page. All we need to do is add some code to your WordPress theme’s index.php file. Here we go:

(more…)

4 Comments

Website redesign complete!

I finally finished my website redesign! I’m hoping to start a series of tutorials, so stay posted for that. Until then, feel free to browse my portfolio and contact me if you’re in need of a new site!

No Comments