The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Establishing current Page is a Post?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #30808

    I’m creating a WP theme, where I style the navigation based on the URL – eg.

    This works great for the my current permalink structure as the site is really a page based CMS, but for the blog section but for any post pages it messes up the navigation.

    Is there a way to establish if the page is a “Post” rather than a page, or if the “Single” Template is being used?

    Thanks all!

    Edit: amazing what a bit of googling can do –

    Chris Coyier

    That’s pretty up to date as of right now, but just for longevity and bookmarking sake, you’ll probably want to reference this:

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.