Ready to get started?Download WordPress


Meteor Slides
installation -adding php to a theme? (4 posts)

  1. maximan
    Posted 3 years ago #

    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

  2. Josh Leuze
    Plugin Author

    Posted 3 years ago #

    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.

  3. maximan
    Posted 3 years ago #

    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:

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

    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.

  4. Josh Leuze
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic