• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

https custom header logo

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › https custom header logo

This topic is: not resolved

Tagged: custom, digital pro, header, https://, Logo, SSL

  • This topic has 5 replies, 2 voices, and was last updated 6 years, 2 months ago by Victor Font.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 17, 2017 at 7:20 am #199543
    Mitssumi
    Member

    Hi,

    We are force using https traffic only.
    The custom header logo uses a http link at single page and https link on the homepage.
    Seems something is wrong with the code or using relative links.

    Homepage:
    Homepage

    Single page:
    Single page

    Most recent themes used: Genesis & Digital Pro
    Live url: https://goo.gl/9oY0mT

    https://goo.gl/9oY0mT
    January 17, 2017 at 7:50 am #199545
    Victor Font
    Moderator

    There's something else going on with your site that may be related to caching. You home page is using autoptimize to minimize and combine your CSS. The interior pages are not using the autoptimize CSS, but are showing the logo link as inline CSS.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 17, 2017 at 7:58 am #199547
    Mitssumi
    Member

    I disabled the autoptimize plugin and cleared all the cache (cache enabler plugin + cloudflare).

    January 17, 2017 at 8:34 am #199551
    Victor Font
    Moderator

    It's not possible to tell from the front end what's happening, but I have two thoughts.

    This could be related to your server configuration. Genesis retrieves custom header images using the WordPress get_header_image() function. This WordPress function sets the url with another function named set_url_scheme(). set_url_scheme() in turn uses a function named is_ssl() to determine whether to append http or https as the protocol. It does this by reading server port 443 to see if a SSL certificate is attached to the port. Depending on your host, is_ssl doesn't work behind some load balancers. This article explains the problem and potential fixes, https://snippets.webaware.com.au/snippets/wordpress-is_ssl-doesnt-work-behind-some-load-balancers/

    The second thought is to use a tool like Better Search and Replace to change any instances of http stored in your database to https.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 17, 2017 at 9:20 am #199556
    Mitssumi
    Member

    Hi Victor,

    Nothing hard coded in de code or database.
    Solved the issue by forcing wordpress to use https

    if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
        $_SERVER['HTTPS'] = 'on';

    Problem was Cloudflare acting as a transparant or reversed proxy.
    Cloudflare redirects all http traffic to https, so no harm done.

    Thank you for pointing me in the right direction Victor!

    January 17, 2017 at 2:49 pm #199575
    Victor Font
    Moderator

    Doesn't Cloudflare have a setting for https?


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble