Can I have a different theme just on one or two pages

I have an online form I would like to do over https however I have theme and plugin issues loading mixed content. To try and get round a chunk of this the form doesn't need to be in the theme at all and could be centered in a plain white screen. Further issue is the form is a Gravity forms form and I need it to be within the same site.

Look forward to any ideas.

  • Adam Czajczyk
    • Support Gorilla

    Hey @CS_Team,

    I hope you're having a great day!

    As for mixed content, I'm pretty sure that there are elements that are somehow "hardcoded" to the theme (like images loaded from absolute URL's etc.) or placed within the posts or pages. I'd suggest checking the theme and all the content for such elements.

    It may be an issue of a plugin as well. Sometimes developers put absolute URL's (eg. "http://something/image.jpg" instead of "image.jpg") inside their code, which isn't a good practice. So, if the first step doesn't help, please try to run a plugin check by disabling allt the plugins and than enabling them one-by-one just to see if there are still elements loaded through not-secured connection.

    Of course you may set a different theme for one of the pages (the one with the form). You'll find more information on this in our article here: https://premium.wpmudev.org/blog/wordpress-different-themes-for-pages/

    I hope that helps.

    Regards,
    Adam

  • CS_Team
    • Site Builder, Child of Zeus

    Hi Adam, I am moving through the wordpress codex and I can see that the logo in the template is being called using

    get_template_directory_uri().'/framework/images/logo.jpg'
    does
    get_template_directory_uri
    not honor the http / https status?

    Found the answer - please ignore this. The theme developer was storing the full URL to the logo in the options table.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.