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”>