Meteor Slides Home Page Header Only

Community Forums Forums Design Tips and Tricks Meteor Slides Home Page Header Only

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  David Chu 1 year, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36922

    PatBirch
    Participant
    Post count: 12

    Hi, Can anyone help me to specify the meteor slide show for use in the home page header only?

    http://www.highbridge.org
    #36935

    David Chu
    Participant
    Post count: 1426

    Hi,
    Here’s a way to do it. You’ve run into one of the biggest fans of Meteor Slides… I love that plugin. :-) Josh is awesome. This block of code would go in your functions.php.

    [php]
    add_action ( ‘genesis_header’, ‘dc_add_meteors’ );
    function dc_add_meteors() {
    if ( is_home() ) {
    if (function_exists(‘meteor_slideshow’)) {
    meteor_slideshow();
    }
    }
    }
    [/php]

    Some edits might be needed – in some contexts, “is_front_page” works better than “is_home”. Also, when you invoke the meteor slideshow, if you have several of them, you’ll need to specify which one, like meteor_slideshow(3) or what-have-you. I see you have the Genesis background header image working up there…. you’d have to take this out or fiddle with it to get the Meteor Slides to fit in that context.

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

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

You must be logged in to reply to this topic.