WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
Adding slidshow to homepage (4 posts)

  1. JustAnotherFoodBlogger
    Member
    Posted 9 months ago #

    Hi there!

    I know this question has been asked before but I think I need a more detailed explanation:

    I'd like to add the slideshow to my homepage, right above the featured post. I have a Genesis child theme and I pretty much customized the whole thing myself but I'm still a newbie.

    Where exactly would I have to add some code (and what code) to make the slideshow appear on my homepage? This is my blog: http://www.thecleandish.com

    Thank you so much in advance!!

    http://wordpress.org/plugins/meteor-slides/

  2. Josh Leuze
    Member
    Plugin Author

    Posted 9 months ago #

    Hi, so you want to add the slideshow on your homepage, below the header and above the top post, is that correct?

    Is your site using a Genesis template file for the homepage, or so you have something like a home.php file on your child theme? If the homepage layout is controlled by a file in your child theme, you could edit that directly and add the slideshow template tag. Otherwise if this is handled in Genesis, you can use a hook in your functions.php file to insert the slideshow.

    Let me know how your homepage is setup and I can give you more details on what you need to do to add the sideshow.

  3. JustAnotherFoodBlogger
    Member
    Posted 9 months ago #

    Josh, first of all, thank you so much for trying to help me!

    I couldn't see a home.php file (perhaps I wasn't looking in the right place?) I have only made changes to the child theme style sheet so far.
    This child theme has Theme Functions and Landing Page templates. Does that help?

    I had already looked for a home.php last week as I saw your response to someone else who was attempting to do the same thing but I can't see it anywhere.

    Thanks for your time & patience :)

  4. Josh Leuze
    Member
    Plugin Author

    Posted 9 months ago #

    Great, if you don't have a template file in your child theme to edit for the homepage, than you can use a hook to insert the slideshow into the homepage.

    To do this I would use the Genesis Simple Hooks plugin. It might take some trial and error to find the right hook, start by trying the "genesis_before_loop".

    Add the slideshow template tag into that hook, and be sure to select "Execute PHP", so that the tag runs:

    <?php if ( is_front_page() ) {
    if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); }
    }?>

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.