Tagged: multisite nivo slider shortcode
- This topic has 10 replies, 2 voices, and was last updated 11 years, 1 month ago by
StartupWP.
-
AuthorPosts
-
January 9, 2015 at 5:21 PM #2039
StartupWP
KeymasterOpen 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
sliderID is conflicting and you need to use multiple IDs dynamically, we’ll need to implement a PHPifstatement.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 #2040mapasy
ParticipantThanks 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 #2041StartupWP
KeymasterApologies, 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 #2042mapasy
ParticipantIf 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 #2043StartupWP
KeymasterTry 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 #2044mapasy
ParticipantGot 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 #2045StartupWP
KeymasterApologies for being dense, is the problem now resolved or you need further help?
January 12, 2015 at 8:47 AM #2046mapasy
ParticipantHello! 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 #2047StartupWP
KeymasterYou 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 #2052StartupWP
KeymasterUnfortunately, 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.
