WordPress.org

Forums

Meteor Slides
[resolved] Where to put the code? (8 posts)

  1. cliang6817
    Member
    Posted 2 years ago #

    Hi I'm using http://demo2.woothemes.com/artificer/ theme from woothemes. I have just download the plugin and upload the image. Then, I try to put code into the custom.css file but nothing show up.

    As show as blow:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    *
    WOO CUSTOM STYLESHEET
    ---------------------
    Instructions:
    Add your custom styles in this file instead of style.css so it
    is easier to update the theme. Simply copy an existing style
    from style.css to this file, and modify it to your liking. */
    
    /*
    GLOBAL STYLES
    ----------------
    Add styles beneath this line that you want to be applied across your entire site */
    /* 
    
    DESKTOP STYLES
    -----------------
    Add styles inside the media query below that you only want to be applied to the desktop layout of your site
    <?php if ( is_front_page() ) {
    	if ( function_exists( 'meteor_slideshow' ) ) {
    		meteor_slideshow();
    	}
    } ?>
    */
    
    @media only screen and (min-width: 768px) {
    	/* Desktop styles go here */
    }

    Thank you

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

  2. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    You can only add CSS to your stylesheet, not PHP.

    If you want to use the slideshow template tag, you have to add it to a PHP template file in your theme. But there is also a shortcode and widget that you can use to add the slideshow to your site, it depends on where exactly you want to add the slideshow.

  3. cliang6817
    Member
    Posted 2 years ago #

    Got it Thank you

  4. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    You're welcome!

  5. mybeautifullb
    Member
    Posted 2 years ago #

    good morning
    i would like to piggy back on the previous post, i am also using the artificer template and was wondering how to add a meteor slider in the header of my home page.
    Please keep in mind that i don't know much about coding but can follow directions.

    thanks

  6. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    @mybeautifullb First I would see if the header has a widgetized area where you can add the Meteor Slides widget, or see if there is a theme options area for the header that supports shortcodes.

  7. skangie
    Member
    Posted 2 years ago #

    I had no problems adding the php code to a custom header section of my old WordPress theme - Weaver. I've just changed to iRibbon and now I'm having plenty of problems. The slideshow header doesn't show up no matter where I put the code (custom header drag-and-drop option) or which 'insert header' plugin I use. I think the problem is iRibbon, not you guys. They have their own featured slideshow but it only shows up on the homepage and has a max of 3 slides. Can I put this code in the theme stylesheet somewhere? Another person has my exact problem but iRibbon said they couldn't help him, that he would need an expert and they didn't have the time. I think their theme sucks AND they're control freaks!

    http://skandarandgeorgie.com

  8. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    @skangie The default slideshow is built really deeply into the theme, they don't really want you to use something else. I don't know if they have an option on the theme settings to deactivate it? You could add the slideshow template tag to the indext.php file and load that instead, but only if you can deactivate the default slideshow.

    Otherwise you would have to create a custom page template for your homepage and add the slideshow template tag to that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic