How can I format entry-titles differently for posts vs static pages
-
My site’s navigation consists of a couple of static pages and several category archive blog pages. I would like to format the titles on the static and category pages (e.g. ‘CATEGORY: THE BODY,’ although I’ve removed the ‘CATEGORY:’ part) slightly larger than the post titles. I have created a new class for the category-title, but can’t figure out how to differentiate between the entry-titles for posts and pages. It seems like there should be some php function that says that
if_post
then I can designate a class post entry titles, andif_page
, I can designate a class for page entry titles that I can then format accordingly in my CSS. (of course I only need to distinguish one of them.) Any ideas?I am building a child theme off of twentyeleven. I’m new to coding, so go easy on me. The site is: https://www.medicine4thepeople.com.
Thanks so much in advance.
- The topic ‘How can I format entry-titles differently for posts vs static pages’ is closed to new replies.