Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Adding custom id to body tag? (http://forum.bytesforall.com/showthread.php?t=16830)

crashley1784 Feb 22, 2012 09:43 PM

Adding custom id to body tag?
 
Ok, I've scoured the forums and can't find an answer. I've googled the problem and have consequently broken my site by playing with code.

How can I add an id to the body tag of each page based on either the page name or its id #?
so either <body id="contact"> or <body id="page-id-6" (whatever!)>, just so long as I can target specific pages in my css? I need it in order to do several things, but most importantly allow my custom menu to display correctly for the current page item.

Thanks!

Most current WP / Ata versions.

Site broken: sorry, no link. Must reinstall

juggledad Feb 23, 2012 05:53 AM

Wordpress automaticaly adds a CLASS with a unique id for pages and for the home page you will see the class 'home'


All times are GMT -6. The time now is 05:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.