WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Meteor Slides] installation -adding php to a theme?

[Plugin: Meteor Slides] installation -adding php to a theme?

  • I currently add shortcode to individual pages rather than adding code to the theme. I feel embarrassed asking this question but I’m going round in circles trying to understand how to add code to a theme and what is the benefit versus shortcode. I have an experimental site using twenty-ten. Where EXACTLY is the code added and what should I see as a result? TIA

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Josh Leuze

    @jleuze

    Hi, the shortcode is for adding the slideshow to a specific post or page’s content. The advantage of using the template tag is that you can use it on multiple pages in any location.

    Most often, I will need a slideshow for just the homepage and I will need it outside of the page content area. For building this I will use a page template with the template tag added to it.

    Check out this video that shows how to add the template tag to the header of the TwentyTen theme, I think that will best illustrate how it is used.

    I checked out your vid which helps a lot, but it also adds more questions. In your Documentation regarding “Adding a custom slideshow template” you say:

    QUOTE
    Copy meteor-slideshow.php from /meteor-slides/ to your theme’s directory to replace the plugin’s default slideshow template.
    END QUOTE

    As it relates to WP default twenty-ten theme, when you say “your theme’s directory”, is that the Main Index Template (index.php). And when you say ” replace the plugin’s default slideshow template” what specific code is this. If you have a few extra minutes I’d appreciate a little more detail for this non-programmer. TIA.

    Plugin Author Josh Leuze

    @jleuze

    Your theme’s directory is the folder that all the theme’s files are in.

    So if you are using TwentyTen, you can add a copy of the meteor-slideshow.php file to TwentyTen’s folder located at wp-content/themes/twentyten/ and Meteor Slides will automatically load that copy instead of the default slideshow template in the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Meteor Slides] installation -adding php to a theme?’ is closed to new replies.