Professional Webmasters Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Different Styling For Different Page Type

Go down

Different Styling For Different Page Type  Empty Different Styling For Different Page Type

Post  royal Tue Apr 03, 2012 11:27 pm


Hi,
In this tutorial I’ll explain how to do the same thing, except this time we don’t use conditional tags. However this approach is limited only to page types that are represented by the pageType data tag, namely index, post, archive and static pages.
Here we go,

1. Assign class to body element

2. Adding CSS rules
royal
royal
Administrator
Administrator

Posts : 2872
Join date : 2010-06-21
Age : 39
Location : Jaipur

http://www.infradoctor.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum