Summer Sale | Flat 10% OFF on All Themes Package. Use Coupon Code Summer24 | Limited Time Offer! Buy Now

WordPress Website Templates

Find Professional WordPress themes Easy and Simple to Setup

inner banner

How to replace slideshow with SmartSlider

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47944
    Lucius Douglas
    Participant

    I have installed SmartSlider, exported/imported the settings from Joomla, got the shortcode & php code from the plugin.

    I inserted the code for the slider directly into the header.php page inside a DIV with ‘smartslider’ class. CODE BELOW

    However, when I run it, it only gives me the <div class=”smartslider”></div> container. Nothing from the PHP code is shown.

    I looked at doing this with a widget but could find no way to replace the theme slider with a widget.

    Any assistance would be greatly appreciated.

    </div><!– .header –>
    <?php if ( is_home() || is_front_page() ) { ?>
    <div class=”smartslider”>
    <?php if(isset($_POST[‘width’])) {
    $width = $_GET[‘width’];
    if ($width <= 980) {
    echo do_shortcode(‘[smartslider3 slider=”3″]’);
    }
    else {
    echo do_shortcode(‘[smartslider3 slider=”2″]’);
    }
    }
    ?>
    </div
    <?php if( of_get_option(‘customslider’,true) == ”){ ?>
    <div class=”slider-main”>

    #47953
    Grace Support
    Keymaster

    To use SmartSlider plugin for the homepage slider

    – Go to Appearance » Theme Options » Homepage Slider
    – Enter your slider shortcode which is provided by plugin without php tag

    #47961
    Lucius Douglas
    Participant

    That won’t work as I have two shortcodes, one for mobile & one for non-mobile.

    If you inspect the home page, https://divorcetoolbox.online, you will see the header.php DIV container for ‘smartslider’. It’s the PHP code inside that isn’t executing or showing. It’s legimate code.

    However, if I can use shortcode in the theme slider options, where would I put it?

    #47963
    Grace Support
    Keymaster

    Please send your website URL and WordPress admin login details at [email protected] so we can check and assist you quickly.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.