WordPress.org

Ready to get started?Download WordPress

Forums

Changing Header on Specific Pages (3 posts)

  1. MysticalMatt517
    Member
    Posted 2 years ago #

    I would like to change the header image on specific pages. I want to A/B test with a shorter images.

    What's the easiest way to accomplish this? Should I use custom variables to identify pages I want to try the different header on, or is there an easier solution?

    Thanks!

    - Matthew

  2. olavxxx
    Member
    Posted 2 years ago #

    Most likely you can find plugins that do this, or you can write your own smart plugin.

    Plugin development requires some skill and some time, but your task is not very complex. You could override it by enquing new stylesheets for the pages you define.

    If you do make this, I'd also make an admin panel where you can specify which sheet for which page/post.

    If your not that technical, you can simply look for a plugin.
    Ps. the override stylesheet overrides the picture with !Important

    For such small changes, I would not replace the main sheet.. though if you were to expand with a mobile edition with all definitions new, registerring and deregisterring sheets might be a good way to go.

  3. MysticalMatt517
    Member
    Posted 2 years ago #

    Thanks for the help. It probably would make more sense to implement that functionality as a plugin instead of hacking the theme file. I appreciate the insight! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic