Support » Networking WordPress » Issue with multiple titles in the header for multi sites

  • Hi-

    I recently created a multi site network and was able to get the two sites up and running properly. The one issue is that I would like a different title on the main page for each of the sites that is a different image. I was able to change the title the first time by going to the hosting site and just swapping out the image for the one I want but now it seems its just getting copied over. Is there an easy way to get two different main image titles?

    You can see that for both the title is an image of the NYC skyline.
    Exploringny.com
    Exploringchi.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I take it your theme doesn’t have an upload header option in wp-admin?

    Thread Starter grimik

    (@grimik)

    Unfortunately not… I was able to change it previously by editing it directly through the hosting site and just adjusting the file name.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Yeah, this part sucks. You have to edit the theme and either add in an upload header option OR change the code in the header to look for image-siteID.jpg instead of image.jpg

    Then you would save each image like that in the theme folder.

    Thread Starter grimik

    (@grimik)

    It doesn’t look like I can add in a header option. With the second option, the theme seems to be held at the admin level and not at the site level, so updating the code in the header I don’t think would work. Is there a way to create the theme so each site gets its own version? Is there no real easier way to do this?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It’s still done at the admin level.

    The code for the header image is pulling in image/header.jpg or such, right?

    You change that to pull in image/header-<?php echo $blog_id ?>.jpg instead.

    You have to add this to your theme function: global $blog_id;

    But it works. Then just upload header-#.jpg, where each number is the site ID and match it to the header you want.

    Thread Starter grimik

    (@grimik)

    Sadly my website editing skills aren’t exactly that amazing yet. I understand the concept of needing to change the admin level header to need the blog id but what you have stated above seems more complicated than I can figure out. Is there an easier way to explain what needs to be done? Thank you so much for all of your help!

    Erik

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Not really… I mean other than picking another theme if you can’t do the code yourself :/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issue with multiple titles in the header for multi sites’ is closed to new replies.