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 |
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.