badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

SSL Problem

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #13228
    woodlandsp
    Participant

    Hi,
    My website woodlandsprings.co.uk has an SSL Cert and static IP. I used whynopadlock.com/check.php to check my page and found many absolute urls to http: address. These have all been fixed and WordPress has been set up for https:. I stll however hace 3 errors as below
    Insecure URL: http://fonts.googleapis.com/css?family=PT+Sans%7CPhilosopher&ver=3.9.2
    Found in: https://woodlandsprings.co.uk/

    Insecure URL: http://fonts.gstatic.com/s/ptsans/v7/FUDHvzEKSJww3kCxuiAo2A.ttf
    Found in: http://fonts.googleapis.com/css?family=PT+Sans%7CPhilosopher&ver=3.9.2

    Insecure URL: http://fonts.gstatic.com/s/philosopher/v6/OttjxgcoEsufOGSINYBGLZ0EAVxt0G0biEntp43Qt6E.ttf
    Found in: http://fonts.googleapis.com/css?family=PT+Sans%7CPhilosopher&ver=3.9.2

    Anyone have any ides how I can correct these?
    Thanks
    Chris

    #13248

    Hi woodlandsp,
    This url is enqueue from the theme folder -> library -> functions -> functions.php
    you can simply modify the http:// to https:// on line no 68
    wp_register_style( 'attitude_google_font', 'http://fonts.googleapis.com/css?family='.$attitude_google_font_load );

    but We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost. So better make child theme and first unhook the functions and the edit the code.

    http://codex.wordpress.org/Child_Themes

    Thank you!

    #13283
    woodlandsp
    Participant

    Hi,
    Thanks for the response. Could you not just modify the theme to make the call as below in line with standard SSL friendly techniques?
    wp_register_style( ‘attitude_google_font’, ‘//fonts.googleapis.com/css?family=’.$attitude_google_font_load );

    I would prefer not to go down the child theme route if possible and not the direct editing route for the reasons you say. I want to be using your wonderful theme as you intended without having to go to extra work every time there is an update to the theme.

    Keep up the good work
    Chris

    #13319

    HI woodlandsp,
    If you don’t create child theme then all your customisation code will be lost while updating to our new version. We are sorry for that about it update. We will let you know if we get any update on about this issue.

    Thank you!

    #16618
    FRIENDSHIP SYSTEMS
    Participant

    Hi,

    I think, this is a bug!

    If your site is reachable by port 80 and 443, you should fix your code to load external content in the same scheme way(http/https).

    Firefox 23 block this for security reasons. Check google for “Blocked loading mixed active content”.

    Please fix the source code in the package!
    you need only to fix the scheme:
    wp_register_style( 'interface_google_font', 'http://fonts.googleapis.com/css?family='.$interface_google_font_load .':400,700italic,700,400italic');
    to

            wp_register_style( 'interface_google_font', '//fonts.googleapis.com/css?family='.$interface_google_font_load .':400,700italic,700,400italic');
    

    Regards
    Konrad Lorentz

    #16654

    Hi FRIENDSHIP SYSTEMS,
    Thanks for sharing a bit of information with us. We will think about it.
    Thank you!

    #16663
    woodlandsp
    Participant

    Hi Friendship Systems,
    I hope Theme Horse update the theme as I love using it and it would be nice for it to be SSL Compatible without using child themes.
    Thanks for your comment.
    Chris

    #16686
    David
    Participant

    I’m having the same issue, Internet Explorer is throwing up a security dialogue every time a page on the site page is accessed. Firefox and Chrome are both giving warnings that unsecure content is being blocked.

    #16762

    Hi all,
    Thanks for you suggestion. We will think about it in our upcoming version.

    Thank you!

    #16826
    David
    Participant

    With some digging, I found the php files that the offending urls (Google Fonts and one other…different php file for each) were hiding in. I followed the instructions on creating a child theme, but couldn’t grasp how to unhook and re-hook the part that printed the urls into the final html. So I edited the parent theme files by changing the prefix to https:// and now I no longer get the annoying warnings in IE.

    #16831
    woodlandsp
    Participant

    Hi David,
    What were the 3 files?
    Many thanks
    Chris

    #16894

    Hi David,

    Here is the sample how to unhook the functions.

    Eg:-

    unhook functions
    
    // Unhook default Thematic functions
    function unhook_thematic_functions() {
        // Don't forget the position number if the original function has one
    
    remove_action( 'attitude_404_content', 'attitude_display_404_page_content', 10 );
    
    }
    add_action('init','unhook_thematic_functions'); // removes the header content by using hook attitude_header
    
    add_action( 'attitude_404_content', 'attitude_child_display_404_page_content', 10 );
    /**
     * function to show the footer info, copyright information
     */
     
     
    function attitude_child_display_404_page_content() {      ?>   
    <div id="content">
    		<header class="entry-header">
    			<h1 class="entry-title"><?php _e( 'Error 404-Page NOT Found', 'attitude' ); ?></a></h1>
    		</header>
    		<div class="entry-content clearfix" >
    			<p>Thank you</p> 
    		</div><!-- .entry-content -->
    	</div><!-- #content -->
      <?php 
    }

    This is for page 4o4.php

    Thank you!

    #16895

    Hi woodlandsp,
    You want the location of this file then here it is

    Go to theme folder -> library -> functions -> functions.php under this functions
    function attitude_scripts_styles_method() {
    But if you make any changes then first make child theme and unhook functions as and then only edit the code. I have just pasted a sample to unhook the functions.
    Thank you!

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.