WordPress.org

Ready to get started?Download WordPress

Forums

WP Parallax Content Slider
[resolved] How to insert slider in a static page (4 posts)

  1. LckWP
    Member
    Posted 1 year ago #

    I'm sorry but I can't see the slider on my page. I selected static mode.
    Where should I put this code?
    <?php if ( function_exists( 'get_wp_parallax_content_slider' ) ) { get_wp_parallax_content_slider(); } ?>
    When I insert it in the HTML section of the page, I see the code, but not the slider.
    I need a little more detailed explanation for the use..

    Plugin is activated and template is Spark..

    Thanks

    http://wordpress.org/extend/plugins/wp-parallax-content-slider/

  2. wp-maverick
    Member
    Plugin Author

    Posted 1 year ago #

    Be careful, static mode doesn't mean static page!
    What do you want to do exactly? in which page of your blog do you want to add the slider ?
    Basically, you have to chose the PHP file of your theme in which you want to add the slider and put the slider code in it. Once evaluated, the code will be replaced by the HTML Slider. If you put the PHP code in a static file, or HTML file, it won't be evaluated :( Perhaps this is why you see the code and not the slider !?

  3. LckWP
    Member
    Posted 1 year ago #

    I have some pages that are displayed one below the other .. in one of these I would add the slider, if possible at fullscreen, and slide images and content (as in the example on his site) .. I use the child theme of my template..in which file should I put the php code? I create one?
    I think I should use the static mode, or am I wrong?

    Thank you very much

  4. wp-maverick
    Member
    Plugin Author

    Posted 1 year ago #

    Static mode means that the slider will display the HTML slides you can find in the file :

    plugins/wp-parallax-content-slider/static-slides-sample.php

    Dynamic mode means that the slides are automatically generated from the wordpress content (i.e. articles).

    If you choose to use the static mode, I recommend to duplicate this file and to modify the code below in the file 'wp-parallax-content-slider.php':
    include('static-slides-sample.php');
    by
    include('my-static-slides.php');

    If you use a child theme, it's recommended to only change the files in the child theme.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.