• Resolved wolvinavera

    (@wolvinavera)


    Hello Josh
    I need your he please!
    Today I uploaded successfuthe pictures for my very first slideshow.
    I want to get it in the content of my homepage.
    So I switched to the HTML,inserted [meteor_slideshow]
    and hit Update.
    But when I view the page, there is appearing only the empty
    space of 800×300 and no slideshow…
    See it here: http://www.icons-dullaert.com

    Please help, but don’t tell me about php’s because I don’t
    know anything about this.

    What exactly shuld I insert into HTML of my page content?
    Thanks.
    Kind regards,
    Vera

    https://wordpress.org/plugins/meteor-slides/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    Hi Vera, you’ve got everything setup correctly. The issue is that there is a conflict with your theme. The theme has a file in it called “customscript.js” that is using the “$” jQuery shortcut in some places, instead of the full “jQuery” version. This is causing a conflict with Meteor Slides, which is breaking the script for the slideshows.

    This is happening because your theme is using a different version of jQuery instead of the version of jQuery built into WordPress, which Meteor Slides uses. WordPress doesn’t support the “$” shortcut in jQuery because it loads it in No Conflict mode: https://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers

    To fix this I would update your theme to also use the built in version of jQuery. You should be able to find a line of code that looks like this in your header.php or functions.php file:

    <script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?ver=1.7.1'></script>

    Remove that and add this to your functions.php file:

    function dullaert_enqueue_jquery_script() {
    	wp_enqueue_script( 'jquery' );
    }
    add_action( 'wp_enqueue_scripts', 'dullaert_enqueue_jquery_script' );

    That will load the built in version of jQuery and because it is done through WordPress, WordPress will see that the theme and at least one plugin are using jQuery, and only load this file once.

    That should resolve the problem, but if the slideshow still doesn’t work, you need to fix the custom script in your theme. To fix the “customscript.js” file in your theme’s “js” folder, you need to wrap that code so that the “$” shortcut can be used:
    https://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers

    Here is a copy of the custom script with this wrapper added:
    https://gist.github.com/JLeuze/07cff65bcfb588f358a7

    Sorry, I know that is kind of complicated, but the theme wasn’t built correctly and the only way to resolve the issue is to fix this problem in your theme.

    Thread Starter wolvinavera

    (@wolvinavera)

    Hi Josh,
    thank you so much for your fast response!

    It will solve my problem, I just have to go
    to my Hostgator support and they will fix it
    for me as they always did when I had to deal
    with php codes.

    Have a great day!
    Vera 🙂

    Plugin Author Josh Leuze

    (@jleuze)

    No problem Vera, let me know if you run into any issues!

    Thread Starter wolvinavera

    (@wolvinavera)

    Hi Josh,
    Today I got very disappointed about
    Hostgator support. They just don’t help
    any more with coding.
    They said I should contact you.
    Please would you help me with this, I am
    willing to pay you before I look for
    someone at elance or so…
    Please, let me know.
    Thanks.
    Vera

    Plugin Author Josh Leuze

    (@jleuze)

    I can help you fix this, I will follow up with you via email.

    Thread Starter wolvinavera

    (@wolvinavera)

    Thanks a lot, Josh!
    Email sent.
    Vera

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to put the slideshow in the content of my page’ is closed to new replies.