Support » Plugin: WP Image Carousel » How To Add an Image Carousel To a Theme File

  • Plugin Author Ziv


    First of, note that you cannot place two image carousels on the same page.
    To add an image carousel to a theme file, follow these instructions:
    Create a blank page/post and add all of your images but without the shortcode. Then add the image divider (/!) between each image. After that click on the text tab in the post editor and copy all of the code. Then go to your theme file in the WordPress theme editor, and find the spot where you want your shortcode to be, and paste the following code:

    $text = 'All of the code that you copied.';
    echo do_shortcode('[wpic color="x" visible="x" width="x" height ="x"speed="x" auto="x"]'.$text.'[/wpic]');

    Replace “All of the code that you copied.” with the code you copied from the post editor. This should give you something that looks like this:
    $text = '<img src="image-location" />/!';
    Now all you need to do is setup your shortcode settings and hit save.
    Please let me know if everything worked for you, and thank you for using my plugin.

  • The topic ‘How To Add an Image Carousel To a Theme File’ is closed to new replies.