Forums

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

Home Forums Back End [Solved] WordPress: if page = single

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28709
    jamygolden
    Member

    I’m using wordpress. I want to add certain code to the header when someone is browsing an article page (which uses the page.php template). I’ve done something similar (not in wordpress) before by having this in the header:

    Code:

    And this in the page:

    Code:

    I’ve tried that but it’s not working in wordpress. Any ideas?

    #74114
    Chris Coyier
    Keymaster
    Code:
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.