• Resolved inspirationally

    (@inspirationally)


    Hello,

    I have the problem, that the themes all show the same header image (with custom header in customizer)
    I also tested just with the default themes and no other plugins activated in a second WordPress installation. I get no error messages, though debug is activated to e_all and basically everything is shown.

    I activate twenty fifteen, chose header1 as header image,
    then I activate twenty seventeen and chose header2 as header image,
    when I then go to twenty fifteen (or whatever other theme) with Theme Switcha, I see header2 instead of the one I originally uploaded to the chosen theme when that one was activated.

    All this behaviour when „also in admin panel“ is unchecked.

    When I activate this and have twenty fifteen as active theme, but twenty seventeen as Theme switch admin theme, and I change the current header for twenty seventeen, this also changes the header image for the „really active theme“. So I have for visitors (for which it is currently deactivated) twenty fifteen with the twenty seventeen header.

    Is this how it shall work? I wanted individual headers for all themes. It looks not good if a horizontal orientated theme suddenly has a vertical header image. Visitors can already see a new header image I uploaded for a not yet published theme.

    I also tried with two browsers – Safari and Firefox. With Firefox I was never logged in into that WP admin panel before. And I did the visitor check with Chrome.

    I hope, you have an idea.

    Thank you, Martina.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Hi Martina,

    Glad to help. This sounds like a bug, I will investigate and see if there is any solution for the next plugin update. Thanks for reporting. In the meantime, please let me know if you discover any further related information, or if I can provide any help with the plugin. Thank you.

    Thread Starter inspirationally

    (@inspirationally)

    Hey Jeff, thanks for your quick answer.

    can you reproduce it?

    More things I found out:

    – Resetting the theme switcha settings did not help.

    – This happens when the checkbox “Enable theme switching” is NOT checked! (also none of the others):
    When I want to change the theme through “live preview” from the themes site, it would not work, it always forwards me to the currently activate theme to customize. Means, if I have twelve seventeen active and want to customize twelve fifteen by clicking live preview instead of activate on the themes page, it does not show twelve fifteen on the right side, but stays at twenty seventeen. I have to deactivate the plugin so it works again, or check the checkbox, so I can edit it under theme switcha.

    – I just tried Theme Test Drive (while deactivating theme switcha) – and it acts nearly the same (header images change site-wide) while it wouldn’t even let me activate another theme, but life preview works here.

    – Of course I could give you ftp/WP admin access to my test installation, if that helps.

    Kind regards, Martina.

    Plugin Author Jeff Starr

    (@specialk)

    Thanks all good information. Likewise here are some points that you may want to consider:

    • The WP Customizer only affects the theme that is default active
    • It is meant for developers who want to build, customize, and update
    • If you’re only making changes via Customizer/preview, you do NOT need Theme Switcha

    So basically there is no need for Theme Switcha if you are using the Customizer. Theme Switcha is really more for developers who need to make changes on live sites.

    I hope that helps.

    Thread Starter inspirationally

    (@inspirationally)

    Actually, I (want to) use it as

    a) theme showcase (theme demo for different themes)
    b) theme development (editing inside the css / html / php) files for not yet published themes.

    but all (by myself) developed themes also have custom colors and custom headers, which have to be updated through the customizer for testing (for example to check if I forgot to add some border-color to the customizer css), while the other themes are still active.

    You write that the WP Customizer only affects the active theme – but (Enable Admin Area checkbox checked) – if I go to the not active theme through Theme Switcha to change the link color with the customizer to green and publish that, it does change to green, while the other (active) theme stays with red link color.
    Just the header image overwrites.

    And also if I completely deactivate Theme Switcha, truly activate one after the other as my default theme and add different headers to each, and this works! –
    as soon as I activate theme switcha all headers on all themes’ headers show just the one header of the active theme.

    Plugin Author Jeff Starr

    (@specialk)

    Alright thanks, that’s useful information that should fortify my investigation for the next plugin update. Thank you for your insight and feedback.

    Thread Starter inspirationally

    (@inspirationally)

    Thanks very much. I hope, this will be released soon or I’ll have to install WP multisite and do it with a thousand different blogs.

    But can you tell me –

    Is this the usual behaviour or is it just me?
    Does for you and others a different custom header for each theme work?

    I tried also even more similar plugins, most of them deprecated, but all show the same behaviour.

    Plugin Author Jeff Starr

    (@specialk)

    “Is this the usual behaviour or is it just me?”

    I’m not sure really. Without actually seeing what you are working with, it is difficult to imagine what might be happening. I can tell you that normally people use the WP Customizer/preview feature to make minor changes like header image, widgets, and so forth. So in that case, when the Customizer is used, there is no need for Theme Switcha. If on the other hand, you are changing header code and making other changes directly via theme template, then Theme Switcha will enable you to view your changes on the live site, while all other users continue using your default active theme.

    Thread Starter inspirationally

    (@inspirationally)

    For everybody having this same problem, here a little workaround.

    I added a transparent png of 1×1 px as custom header (skip cropping). So this works, too, if you have the conditional if ( get_header_image()) in your header.php, but it can be any pic.

    In the header.php of my theme, I gave the banner an additional class

    <div id="banner" class="theme1" style="background-image:url('<?php header_image(); ?>')">

    Then in the customizer under additional css, I put

    #banner.theme1 {background-image: url(http://example.org/wp-content/uploads/headers/theme1.jpg) !important;}

    The customizer css is then applied to all theme switcha themes, unfortunately, too, just like the custom headers. So you have to give them a unique class for each header image.

    Not perfect, but the best idea I had so far.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘same custom header in all themes’ is closed to new replies.