Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Absolute addresses in WP admin bar stopping page loading as http or https

Discussion in 'Misc WordPress Requests' started by antipole, Jan 20, 2018.

  1. antipole

    Guest

    Absolute addresses in WP admin bar stopping page loading as http or https, by antipole

    Hi… on my site http://mariannefrylectures.co.uk I am trying to secure certain pages using the plugin WordPress HTTPS. This works OK provided the page content loads using relative addressing “/directory…” and not absolute addressing as “http://<address>/directory…”.

    If I am logged on and the WP admin bar is being displayed, pages that should be secure are being forced to http.

    Examining the browser console, I can see that the search button in the WP admin bar is displayed with the following code:

    <li id="wp-admin-bar-search" class="admin-bar-search"><div class="ab-item ab-empty-item" tabindex="-1"><form action="http://mariannefrylectures.co.uk/" method="get" id="adminbarsearch"><input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" /><label for="adminbar-search" class="screen-reader-text">Search</label><input type="submit" class="adminbar-button" value="Search"/></form></div> </li>

    The problem is, I believe, the absolute http: address for the form action, which prevents the page loading http or https as required.

    If I log out so the admin bar is not displayed, this problem goes away.

    I believe this is a WP issue, not a theme or plugin issue. Any advice, please?

    NB At the time of writing there is another element on my site caused by my theme but that is not the issue I am addressing in this post.

    Absolute addresses in WP admin bar stopping page loading as http or https
     
    #1

Share This Page

Monarch Social Sharing Plugin