WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Changing logo/header on Multisite when hardcoded into header.php (11 posts)

  1. jabrieske
    Member
    Posted 3 years ago #

    Hi all...Thanks in advance for your advice on this.

    I'm setting up a Multisite network and need to customize the header logo for each site. Unfortunately, although the theme I'm using has many theme options built in, the logo is not one of them, and is hardcoded into the header.php file.

    "Double unfortunately," I need to use this theme (http://www.elegantthemes.com/gallery/myresume/) since it's the only résumé WP theme I know of. There's no option to switch to another theme.

    My first thought is to hack the theme options and add the logo as an option. I'm trying to figure this out, but honestly it's over my head.

    Some advice? Is going further down this path the best option, or is there another technique those who have run into the same issue have used?

    FYI...this is the code from the header.php file. The avatar code has an option in the theme, the following logo code does not.

    '<img class="avatar" alt="Nick Roach" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo(get_option('myresume_avatar')) ?>&h=79&w=79&zc=1" />
    <img class="logo" src="<?php bloginfo('template_directory'); ?>/images/logo.gif" alt="Nick Roach" />'

    Thanks!

    Jeremy

  2. dgilmour
    Member
    Posted 3 years ago #

    There is another way: http://wordpress.org/support/topic/how-to-separate-sites?replies=4#post-1732946

    Once you've modified a theme, you can make it available to a limited number of sites. First, modify its title info in its style.css (so you can identify it), then upload it into its own folder in the themes directory. Don't enable it site-wide, though, in SuperAdmin / Themes. Instead use SuperAdmin / Sites to edit the site, and check the box to allow it to use the modified theme.

  3. I would hack the theme to use the custom header option if it were me. If you're making a new copy of the theme for every.single.user. that will not scale.

    in other words, fine for a handful, a nightmare for a hundred.

    It's a quick job; find a dev & pay them. :D

  4. jabrieske
    Member
    Posted 3 years ago #

    yeah...my thoughts, too. I may have hundreds of sites, so I need to do it the scalable way.

    I'll try to figure it out on my own (I like a challenge!), and if I can't figure it out, hand it off to a real pro ;-)

    Thanks!

  5. Oldie but goodie:
    http://wpmututorials.com/how-to/giving-your-users-changeable-custom-headers/

    You could hit up people on the Elegant themes forums. (You did pay for support there. ;) ) Chances are, someone there has done it already.

  6. jabrieske
    Member
    Posted 3 years ago #

    Cool...I'll check that out.

    I have checked around and posted in their forums. There seem to be a lot of Multisite questions over there right now, but not as many answers as we'd like ;-)

  7. jabrieske
    Member
    Posted 3 years ago #

    hmmm...I tried adding that code to functions.php, and got this error message:

    Parse error: syntax error, unexpected $end in /home/resumes/public_html/isforhire.net/wp-content/themes/MyResume/functions.php on line 50

    This is all that's on line 50: #header{

  8. There seem to be a lot of Multisite questions over there right now, but not as many answers as we'd like ;-)

    Is that a hint to go look? ;)

    Parse error is a typo in your code.

  9. jabrieske
    Member
    Posted 3 years ago #

    Nope, not at all. As you said, we paid for the support.....

    All of their themes have this hardcoded logo issue, and most (or all) use timthumb, so there are issue.

    I did find someone who hacked the header option into the options menu. For anyone else using Elegant Themes, the code is here:

    http://www.elegantthemes.com/forum/viewtopic.php?f=31&t=17352&start=0&st=0&sk=t&sd=a&hilit=epanel+header

    This was for a different theme, so my alignment is still a bit off, but I'm almost there: http://alexandramabardi.isforhire.net/

  10. (I asked because I'm a member there as well, but I don't really visit the forums.)

  11. jabrieske
    Member
    Posted 3 years ago #

    I'm sure you'd be welcomed with open arms!

    Good news...I have this logo issue 100% working. Now onto timthumb! I've seen your tutorial on that issue, so I should be covered. ;-)

    Thanks again for your help, Andrea.

Topic Closed

This topic has been closed to new replies.

About this Topic