• Resolved Phillip Dews

    (@phillipdewsblogger)


    Hi all,

    I am a WordPress theme developer and I am building a new custom theme (something I have done many times before) for my own website. I have the latest version of Masterslider Pro installed on my site and I have made sure that the relevant masterslider js files are showing in the header by adding them to my functions.php file:
    view-source:https://www.brum.design/

    they are on lines 76 – 78

    Also if you inspect element on the Home Page under <div id=”section5″> you will find the relevant master slider code.

    I have tested with css and especially z-index but still nothing is showing up!
    Anyone have any ideas?
    Many thanks

    – Phillip Dews

    I have disabled all the plugins for testing and still nothing is showing up

Viewing 4 replies - 1 through 4 (of 4 total)
  • Neverlanders

    (@neverlanders)

    Hello Philip,

    I’ll try in English.
    I have found a solution.
    When you try inspect element in google chrome on your slider and choose console.
    Then you see errors on all plugins who use jquery and javascript.
    You have to search for these links and change it from http to https.
    That will solve it.

    So all plugins from wordpress that use jquery javascript have to be ported to https.
    by the way, my site was https://www.sintjozefbrugge.be (school). Everything is fine now.

    Best regards,
    Tom

    Thread Starter Phillip Dews

    (@phillipdewsblogger)

    Hi Tom,

    thanks for that! most of the js files and enqued properly in my functions.php file and to make doubly sure I have added this to make sure that all assets are loaded correctly:

    function DevBrum_ssl_template_redirect() {
        if ( !is_ssl() ) {
            if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
                wp_redirect(preg_replace('|^https://|', 'https://', $_SERVER['REQUEST_URI']), 301 );
                exit();
            } else {
                wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 301 );
                exit();
            }
        }
    }
    add_action( 'template_redirect', 'DevBrum_ssl_template_redirect', 1 );

    Seems to me the problem is being caused by JQMIGRATE as all I am getting is this:
    JQMIGRATE: Migrate is installed, version 1.4.1

    Jmigrate however is loading up correctly with https have a look at line 79 on: view-source:https://www.brum.design/

    Thanks for your help buddy
    Best regards,

    Phillip

    Thread Starter Phillip Dews

    (@phillipdewsblogger)

    BTW Tom,
    Good to know that your website is now all fully fixed! All the best!
    – Phillip

    Plugin Author averta

    (@averta)

    Hi,
    thanks Neverlanders for helping and being so kind.

    dear Philip we are glad your issue resolved.

    Kind Regards
    Averta

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Theme, Slider not showing’ is closed to new replies.