Tagged: multisite nivo slider shortcode
This topic contains 10 replies, has 2 voices, and was last updated by StartupWP 4 years, 2 months ago.
- AuthorPosts
- January 9, 2015 at 3:58 PM #2038
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
January 9, 2015 at 5:21 PM #2039Open 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 PHPif
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.
January 9, 2015 at 5:44 PM #2040Thanks 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.
January 10, 2015 at 6:55 AM #2041Apologies, 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.
January 10, 2015 at 8:19 AM #2042If 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!
January 11, 2015 at 10:12 AM #2043Try 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"]' ); ?>
January 11, 2015 at 12:00 PM #2044Got 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/
January 12, 2015 at 8:42 AM #2045Apologies for being dense, is the problem now resolved or you need further help?
January 12, 2015 at 8:47 AM #2046Hello! 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/
January 13, 2015 at 10:41 AM #2047You 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.
January 14, 2015 at 7:31 AM #2052Unfortunately, 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.
- AuthorPosts
You must be logged in to reply to this topic.