Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yes.. Otto’s solution is still valid re bodyclass if you use a well-written theme. There’s a lot of stuff there that makes sense and a lot that doesn’t. ??

    Please detail exactly what you’re trying to do.

    Thread Starter bobewishoto

    (@bobewishoto)

    Thank you Sterndata,

    Basically I need to learn everything about wordpress and all the themes LOL

    More specifically, right now I am trying to solve a few issues the first of which is how to have a different, responsive header image on several pages of a site. I have figured out that a header background image is not responsive and that the custom logo is responsive. Unfortunately the custom logo is the same on every page.

    The site I’m working on is womenlovefootball.com
    I didnt build it but the owner has asked me to “fix” it and since I have wanted to learn this stuff it seemed like a good time to get involved.

    Thanks!
    Bob

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I”ve done that a couple of ways, depending on whether the header images are arbitrary or can be based on something algorithmic, though the method is pretty much similar. I use Advanced Custom Fields and, in the arbirary case, add an image field to the sidebar of pages and posts called “custom header”. If the user puts in a value then I override the “default” sitewide logo with code in header.php. In the algorithmic case, I use ACF to create a site options page and put in fields for each “type” of page and then use those in the header. The choice of logo is fairly clear to the person maintaining the site and the code is not particularly hard. If the site owner will reimburse you for the cost of ACF Pro, it’s a very good solution.

    Thread Starter bobewishoto

    (@bobewishoto)

    Thank you,
    That went over my head but now I have something to research and learn ??

    I’ll search Advanced Custom Fields and modify header.php to start with,
    and Ill look into ACF Pro

    If you know of any tutorials I would be grateful.

    For some other questions I should probably start a new post with appropriate subject line.

    Thanks Again
    Bob

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    read this before you modify anything:

    https://codex.www.ads-software.com/Child_Themes

    For some other questions I should probably start a new post with appropriate subject line.

    Yes. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add different header for every page?’ is closed to new replies.