New Topic

Nivo Slider On Multisite

Home › Forum › Plugins › Nivo Slider On Multisite

This topic contains 10 replies, has 2 voices, and was last updated by  StartupWP 4 years, 2 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #2038

    mapasy
    Participant

    Happy New Year!

    I have the pro-version of StartUpWP, and have used your theme and the Nivo slider plugin successfully on several standalone WP sites. I am now working on a multisite platform and am having issues with the Nivo slider working in the universal slider area. I did email the Nivo folks first, and it turns out the plugin works as a shortcode in the content body. I have two examples here:

    Just the one slideshow in the universal slider area: http://www.c2cinsites.com/nivoslider-test2/

    Adding a short code slideshow (interestingly this also makes the universal slider work): http://www.c2cinsites.com/nivoslidetest/

    Any help/insight would be most appreciated, thank you!

    – Mary

    #2039

    StartupWP
    Keymaster

    Open up header.php and find the shortcode [nivoslider slug="slider"]. This is where you can play around with how this is implemented. Introducing a child theme (https://startupwp.com/topic/child-theming/) at this point if you haven’t already might be a good idea, but might also cause other hurtles.

    If this needs to be different on multiple sites in a multisite install, but having just the one slider ID is conflicting and you need to use multiple IDs dynamically, we’ll need to implement a PHP if statement.

    Before we dig in, are we understanding the issue correctly and how many sites is this intended to support, a few, unlimited? Any other details that might help are appreciated.

    Thank you.

    #2040

    mapasy
    Participant

    Thanks for the quick response! We’re planning on creating 15-30 sites right now, but could be more in the future. Each site will have just one slideshow in that universal slide area (using photos particular to that site).

    Sorry, another point I forgot to mention in my original posting – the nivo slider works fine if there is only one slide, its the actual slideshow function which breaks.

    #2041

    StartupWP
    Keymaster

    Apologies, the issue is still too vague to know how to proceed in supporting your request. Please explain the issue in as much detail as you can, is everything up-to-date, are you getting any error messages, can you explain the step by step process to reproduce the error etc.?

    Thank you.

    #2042

    mapasy
    Participant

    If I use more than one slide in the Nivo slideshow and have that activated in universal slider area on one of my multi-sites, this is what displays: http://www.c2cinsites.com/nivoslider-test2/

    -> Are you not seeing images pop up all in the top corners of that webpage?

    If I add another nivo slideshow as a shortcode in the body content, that shortcode works and now the universal slider works also – I have that configuration set up here: http://www.c2cinsites.com/nivoslidetest/

    I am not seeing any error messages, everything is up to date, Nivo slideshow works fine on other multi-site sites if a shortcode is used, the issue appears to be how the universal slider is set up.

    Let me know if you need more information. Thx!

    #2043

    StartupWP
    Keymaster

    Try editing header.php and changes this line:

    <?php if ( $options['slider'] ) { echo '<div id="slider">' . do_shortcode( '[nivoslider slug="slider"]' ) . '</div>'; } ?>

    to just:

    <?php do_shortcode( '[nivoslider slug="slider"]' ); ?>

    #2044

    mapasy
    Participant

    Got it! I plugged the new slider code in and the universal slider disappeared:

    Screenshot of header.php with new slider code: https://drive.google.com/file/d/0B6BDYvRiwPg4WjlWcld1TDVnbUU/

    Screenshot of how website displays with new header.php code: https://drive.google.com/file/d/0B6BDYvRiwPg4MV93YURWTGo3bmM/

    #2045

    StartupWP
    Keymaster

    Apologies for being dense, is the problem now resolved or you need further help?

    #2046

    mapasy
    Participant

    Hello! No, that new suggestion is not working. When I use the new header.php slider code the universal slider doesn’t display, here is a screenshot of what the site looks like using that: https://drive.google.com/file/d/0B6BDYvRiwPg4MV93YURWTGo3bmM/

    When I put back in the original header.php code the universal slider is back displaying, but the pictures again display in random places across the site: http://www.c2cinsites.com/nivoslider-test2/

    #2047

    StartupWP
    Keymaster

    You said you contacted Dev7 already, but we’ll go ahead and put a ticket in with them to have them review this topic and see if they have any thoughts.

    Thank you for your patience.

    #2052

    StartupWP
    Keymaster

    Unfortunately, they’re not sure what’s causing the issue either.

    Not likely, but worth a shot, one last thing to try, possibly name the ID something else, perhaps main:

    <?php do_shortcode( '[nivoslider slug="main"]' ); ?>

    Then make a slider under that ID and see if it makes any difference.

    Other than that, and we wish we could solve them all, at a loss.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.