Hi,
As the PHP tag is already open before the Smooth Slider template tag, there is no need to put the PHP open/close tag again while adding the template tag. As I can see, you have resolved the problem on your website and slider is running fine now, but this solution would help others.
Best regards,
SliderVilla Team
My homepage is http://roundhousetalk.com I have the same problem and still can’t make it appear on my homepage. I use the same plugin version and WordPress version 3.4.2. Here is my index.php code:
<div id="primary">
<div id="content" role="main">
<?php if ( function_exists( 'get_smooth_slider' ) ) { get_smooth_slider(1); } ?>
<?php if ( have_posts() ) : ?>
<?php twentyeleven_content_nav( 'nav-above' );
<?php /* Start the Loop */ ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]
My smooth slider doesn’t show up.
Hi,
Write the slider id inside a single quote. Here is the example,
<?php if ( function_exists( 'get_smooth_slider' ) ) { get_smooth_slider('1'); } ?>
Let me know if it helps.
– SliderVilla.com Team
Here’s how I did it but still no slider. Did I put it in the right place?
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<?php twentyeleven_content_nav( 'nav-above' );
<?php if ( function_exists( 'get_smooth_slider' ) ) { get_smooth_slider('1'); } ?>
<?php /* Start the Loop */ ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]
Here’s the generated CSS code identified on the slider settings which show me what the slider looks like on the page. Thanks for your quick response as I have been struggling with this for 2 days.
Hi,
Check if the code is inside any IF condition. And paste the smooth slider template tag before the <?php if ( have_posts() ) : ?>
See if you site is using index.php for the front page (verify that by seeing the WordPress dashboard ==> Settings ==> Reading ) page.
[Please stop posting in uppercase. It’s the electronic equivalent of shouting and is considered quite rude. Post de-capped.]
i tried it but no luck. below is the code in main index template. i checked the dashboard ==> settings ==> reading ) page and it shows my main page as the front page with no page selection for posts in the static address:
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php if ( function_exists( 'get_smooth_slider' ) ) { get_smooth_slider('1'); } ?>
<?php if ( have_posts() ) : ?>
<?php twentyeleven_content_nav( 'nav-above' );
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) :
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]
Ok, I got the smooth slider to appear on my homepage at http://roundhousetalk.com but I had to use a widget for it on the sidebar. How do I get it to show up on the page body table rather than the sidebar. It looks too big for the sidebar and is cut off. Thanks.
OK. thank u its done ur a man