Fixes for Functions & Footer

  • Resolved
    Posted in: BlackFyre  
  • Member
    CraveMode
    March 26, 2015 at 5:44 am #58287

    I am not sure if there is a reason for these being the way they are, or if they were just overlooked.

    First, in functions.php, the required plugin ‘Disqus’ is set as the plugin name and slug as ‘Discuss’ but the download goes to disqus-comment-system.zip. Even though I downloaded the plugin as it wanted, it still showed it was still needed. I changeed the name of the plugin in the functions.php to Disqus and slug disqus and it reports correctly now.

    array(
    
                'name'                  => 'Discuss', // The plugin name
    
                'slug'                  => 'discuss', // The plugin slug (typically the folder name)
    
                'source'                => 'https://downloads.wordpress.org/plugin/disqus-comment-system.zip', // The plugin source

    Should be:

    array(
    
                'name'                  => 'Disqus', // The plugin name
    
                'slug'                  => 'disqus', // The plugin slug (typically the folder name)
    
                'source'                => 'https://downloads.wordpress.org/plugin/disqus-comment-system.zip', // The plugin source

    We run a SSL secured website. Although I noticed there are functions for links to use whatever protocol depending on ssl is enabled or not, there are several google font links that are not set to this and are set to http://. I don’t know the correct code or syntax to use for those, I could just copy what you have in other places, but I am not sure if it would work. I think adding whatever it is to detect if SSL and choose the correct protocol would correct this.

    Also, in footer.php, the line:

    Is for non-secure http:
    <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>

    The secure link for https (changes the w. subdomain to ws.):
    <script type="text/javascript" src="https://ws.sharethis.com/button/buttons.js"></script>

    Could you add an else if or if else, whatever it is (not a coder!) if the site is using SSL, it would use one or the other link. It would help correct a lot of ssl certificate errors 🙂

    I had to do these changes again since the recent update. I wish I knew coding to do the fixes and provide them but, as I said.. 😛

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.