WordPress.org

Ready to get started?Download WordPress

Forums

WOW Slider
[resolved] Inserting wowslider in theme files by slider name (2 posts)

  1. nickandrea19
    Member
    Posted 7 months ago #

    I need to insert the slider into the theme files because of how the designer designed the theme. The client may want to change that slider at some point, however, they will not have the ability to enter the theme file and update the slider id number. It would be so much more convenient if I could somehow insert it using a name, like "homepage-slider," so that when they want to change it they just upload the new one and takes the place of the old homepage-slider.

    So far, I have only seen shortcodes that reference the id number. Can anybody help me?

    Here's the site: http://yogajyoti.net/wordpress/

    http://wordpress.org/plugins/wowslider/

  2. WOWSlider.com
    Member
    Plugin Author

    Posted 7 months ago #

    Actually, WOWSlider provides this feature. You can find a link to a video tutorial "How to update existing WOWSlider galleries in WordPress" on the page with description of the plug-in:
    http://wordpress.org/plugins/wowslider/
    http://www.youtube.com/watch?v=0NCBHINEPvE

    This video tutorial is for pages/posts and shortcode. If you want to add WOWSlider into the theme, you should use WOWSlider php code. You can find the detailed instruction here:
    http://wordpress.org/plugins/wowslider/faq/
    Please see the question 4.

    To use slider title instead ID you should modify PHP code in the following way.
    * Original PHP code with slider ID:
    <?php wowslider(1); ?>
    * PHP code with slider title:
    <?php wowslider('title:homepage-slider'); ?>

Reply

You must log in to post.

About this Plugin

About this Topic