WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] headers with different slide shows per page (15 posts)

  1. smittyhead
    Member
    Posted 3 years ago #

    Ok I'm having some major problems getting this one to work. I have the lovely job of trying to get a specific slideshow per page on our website. Is this possible using your plugin?

    I know you have covered over and over again about having multiple slideshows, this one may be a new twist or I'm just having issues of my own :-P

    Thanks

  2. smittyhead
    Member
    Posted 3 years ago #

    ok I found the problem, did a bit of research and finally figured it out with the help of all the resources out there. Someone else was doing the same thing with another plugin in the header, heres what I found out for anyone else that needs it:

    <?php if (is_front_page()) : ?>
    <div align="center" id="header">
    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow("generic", ""); } ?>
    </div><!-- #header -->

    <?php elseif (is_page('about')) : ?>
    <div align="center" id="header">
    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow("about", ""); } ?>
    </div><!-- #header -->

    <?php endif; ?>

    Hope this saves someone else some time

  3. Josh Leuze
    Member
    Plugin Author

    Posted 3 years ago #

    Awesome, thanks for sharing your solution!

  4. nhviscom
    Member
    Posted 3 years ago #

    Hey there, first of all thanks a lot for sharing!!
    I have a Question:
    I've embedded the same snippet and search for an additional code who does something like "for all the rest of the pages & posts use this slideshow: ..."

    has someone out there any idea? :-)

    here's the code i use for the rest:

    <div class="headerimage">
       <?php if (is_front_page()) : ?>
            <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow("startseite", ""); } ?>
    
            <?php elseif (is_page('beispiel-seite')) : ?>
            <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow("testseite", ""); } ?>
       <?php endif; ?>
    </div>

    thank you bloggers,
    greetings nadia

  5. Josh Leuze
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Nadia, so you want to load one slideshow for the homepage, another one for the "beispiel-seite" page, and then have a default slideshow for all other pages?

    To do that, try something like this:

    <div class="headerimage">
       <?php if (is_front_page()) : ?>
            <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow("startseite", ""); } ?>
    
            <?php elseif (is_page('beispiel-seite')) : ?>
            <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow("testseite", ""); } ?>
    
            <?php else : ?>
            <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow("default", ""); } ?>
    
       <?php endif; ?>
    </div>
  6. nhviscom
    Member
    Posted 3 years ago #

    Josh thanks a lot - that's exactly what i was looking for!!
    thank you, you're my wordpress guru ;-) have a nice weekend

  7. Josh Leuze
    Member
    Plugin Author

    Posted 3 years ago #

    No problem, you're welcome :)

  8. marvalpert1
    Member
    Posted 2 years ago #

    I want to have slide show as the header on the Front Page
    and other the another header (the same one) on all other pages... If i put the code in the header.php file then ALL headers will be the slide show... what do i do? It would be nice if there was a widget that handled this..since i am not that good with code. thank u so much.

  9. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    You need to use a conditional tag to only use the slideshow template tag on the homepage like this:

    <?php if ( is_front_page() && !is_paged() ) {
    
    	if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); }
    
    }?>
  10. malpert1
    Member
    Posted 2 years ago #

    Great thank you!.. so it goes in the header.php file?
    im using the adventure-journal template

  11. malpert1
    Member
    Posted 2 years ago #

    THis is what i did and this worked.. Thanks!

    I added the "if" code below, which loads the plugin and then added the "else" block
    below it to load the original image whenever it was not the front page. Also added a "}" to end the else statement.

    */
    		    if ( is_front_page() && !is_paged() ) {
    			if ( function_exists( "meteor_slideshow" ) ) { meteor_slideshow(); }
    		     }
    		     else {?>
                            <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    		    <?php } ?>
                    <?php }  ?>

    [Please post code snippets between backticks or use the code button.]

  12. malpert1
    Member
    Posted 2 years ago #

    I cant seem to get the concept of "SLIDE SHOWS" i have created 2 shows when i look but they contain 0 slides.. how do u get slides into a show and how would you position on show next to the other.. my goal is to do something like http://www.ottopizzeria.com

  13. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    Slideshows is a custom taxonomy for the slides post type. They works just like categories for blog posts. You create the slideshows, and then you add the slide posts to those slideshows, then when you load a specific slideshow, it will only contain the slides that have been added to that slideshow.

    There is a little more info about multiple slideshows in the documentation.

  14. marvalpert1
    Member
    Posted 2 years ago #

    Do you have a video on:
    1. how to create a slide show?
    2. how to create a multiple slide show?
    3. do you think it would be possible to create 3 slides shows next to
    each other so you get an effect like this:
    http://www.ottopizzeria.com
    Thank you . LOVE THE WIDGET.....
    heres what it looks like
    http://www.bolognaitalyrestaurants.com

  15. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry, I plan to make more videos, but I don't have one on multiple slideshows yet.

    Yes, you can place three next to each other, you just need to use a little CSS to float them so they fit next to each other.

    No problem, glad you are liking it so far!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic