Viewing 15 posts - 1 through 15 (of 23 total)
  • #59819
    Nerdski
    Member
    Post count: 19

    Ok so my browse states Insecure Content due to the Google Fonts. But from what I have seen the Theme Function code is already relative & should be call google fonts over SSL (not sure?). Can anyone tell me how to resolve.

    Here is Console Error:
    'http://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700':

    Here is the Google Font Loader Code.

    <!--// GOOGLE FONT LOADER //-->
    		<script>
    			var html = document.getElementsByTagName('html')[0];
    			html.className += '  wf-loading';
    			setTimeout(function() {
    			  html.className = html.className.replace(' wf-loading', '');
    			}, 3000);
    			
    			WebFontConfig = {
    			    google: { families: [<?php echo $custom_fonts; ?> 'Vidaloka'] }
    			};
    			
    			(function() {
    				document.getElementsByTagName("html")[0].setAttribute("class","wf-loading")
    				//  NEEDED to push the wf-loading class to your head
    				document.getElementsByTagName("html")[0].setAttribute("className","wf-loading")
    				// for IE…
    			
    			var wf = document.createElement('script');
    				wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
    				 '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    				wf.type = 'text/javascript';
    				wf.async = 'false';
    				var s = document.getElementsByTagName('script')[0];
    				s.parentNode.insertBefore(wf, s);
    			})();
    		</script>
    #59872
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Google code automatically take care SSL . In google code ,there is statement to adopt it
    `wf.src = (‘https:’ == document.location.protocol ? ‘https’ : ‘http’) +
    ‘://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js’; `

    So may i know that what your actual problem with google fonts now ?

    With Best Regards
    Swift Ideas

    #59922
    Nerdski
    Member
    Post count: 19

    Hey Mate.

    Well the issue is on the checkout page the Java Console states google fonts are not being loaded over https. Console Error Below:
    [blocked] The page at 'https://domain.com.au/checkout/' was loaded over HTTPS, but ran insecure content from 'http://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700': this content should also be loaded over HTTPS.

    So I shouldn’t be getting this insecure notice should I.. as the wf.src should be loading it via https know?

    #60199
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide website URL so i can debug and give a quick solution .

    With Best Regards
    Swift Ideas

    #60407
    Nerdski
    Member
    Post count: 19

    Hey Mate.

    Link Below:
    wildernessaffiliated.com.au

    (Obliviously you will need a item in cart to view the checkout page referring to)

    #60435
    Sean
    Member
    Post count: 116

    The URL should be ‘https://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700′:

    #60512
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide wordpress admin login detail so i can debug it to resolve very soon .
    Thanks 🙂
    With Best Regards
    Swift Ideas

    #60513
    Nerdski
    Member
    Post count: 19
    This reply has been marked as private.
    #60514
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I need full permission in wordpress admin .
    Thanks

    #60515
    Nerdski
    Member
    Post count: 19
    This reply has been marked as private.
    #60776
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    @Nerdski – are you sure that the call isn’t coming from Revolution Slider?

    – Ed

    #60961
    Nerdski
    Member
    Post count: 19

    Hey Ed.

    I am not sure, It may, I am not a developer so my debugging skills are not up there. By anychance do you know where I can check this out?

    Cheers

    #60985
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Sorry, didn’t see that it was on the checkout page.

    Can’t see this being an issue with the theme, as the issue shows even when font options are set to default.

    Do you have this plugin setup – https://wordpress.org/plugins/wordpress-https/ ?

    – Ed

    #60987
    Nerdski
    Member
    Post count: 19

    Hey Mate.

    Yeh, I have that installed. But still get Java Console Notice.
    Any other suggestions what fonts code is not calling https fonts?

    Cheers

    #60991
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Well, the font code is coming from the theme, but the requests are all setup correctly as https. Don’t suppose you have any caching set on the site?

    – Ed

Viewing 15 posts - 1 through 15 (of 23 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register