Meteor Slides
[resolved] Novice question...where do I put the code? (6 posts)

  1. The Painted Hive
    Posted 4 years ago #

    This plugin is just what I've been looking for though I'm a little lost.
    I want the slideshow to appear on my home page only, above my posts though below my header and horizontal nav. Like in these examples:

    I have searched the forums for an answer though as a non-developer have decided I need a more detailed, personalised explanation.

    Ideally I would like to be able to put some code in my child themes functions.php (to avoid messing with any core files and so I won't lose anything with future updates). Though what would the code need to be exactly?


  2. Josh Leuze
    Plugin Author

    Posted 3 years ago #

    Hi, where you place the code depends on the theme, what theme are you using?

  3. The Painted Hive
    Posted 3 years ago #

    Thanks. I worked it out. I'm using a Genesis theme. I ended up using this:

    add_action ('genesis_before_loop', "custom_meteor_slides");
    	function custom_meteor_slides() {
    	if ( is_home()  && !is_paged() ) {
    	if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow("featured-posts", ""); }

    It seems to work great.

    Thanks for the awesome plugin!

  4. Josh Leuze
    Plugin Author

    Posted 3 years ago #

    You're welcome, glad to hear you got it figured out.

  5. allanpelias
    Posted 3 years ago #

    Hi Josh,
    I have the same problem with the above post, I'd like the meteor slider in my homepage also. Im using Prosumer template.
    I already figured out the widget on my sidebar, but i'd like tit to appear on my homepage.

    Which code to be replaced?
    What code is the replacement?

    Thank you!

  6. Josh Leuze
    Plugin Author

    Posted 3 years ago #

    @allanpelias It depends on how you have the site setup, if it has a blog homepage or a static homepage and where exactly on the homepage you want the slideshow. Can you post a link to your site and point out exactly where you want it?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic