• Resolved Ramesh R

    (@ramesh-r)


    Hi,

    I use wordpress givingpress lite theme and i wish to bring image slider instead theme default featured image. So i have used your plugin shortcode in page.php template file as told by theme author. but it’s not working.

    What could be the cause for not working??

    Awaiting for your reply.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Gabor

    (@nextendweb_gabor)

    Hi @ramesh-r!

    This theme has multiple templates, which means, that this codepart can be found in multiple files, and based on some settings, different ones are loading on the different pages/posts. Like I can find the banner in the page.php file, and in these files as well:
    template-blog.php
    template-full.php
    template-home.php
    template-left-sidebar.php
    template-three-column.php
    \content\home-page-small.php

    In this case all of them have the same code to make that banner:

    	<?php if ( has_post_thumbnail() ) { ?>
    		<div class="feature-img page-banner" <?php if ( ! empty( $thumb ) ) { ?> style="background-image: url(<?php echo esc_url( $thumb[0] ); ?>);" <?php } ?>>
    			<h1 class="headline img-headline"><?php the_title(); ?></h1>
    			<?php the_post_thumbnail( 'giving-featured-large' ); ?>
    		</div>
    	<?php } ?>

    what you should remove, and just write our code there with your slider’s ID:

    <?php 
    echo do_shortcode('[smartslider3 slider=15]');
    ?>

    But for example at my posts another code is used there, which is inside the header.php file, and it is a longer code, so I’ll tell the beginning and the end. It starts from line 158. for me:
    <!-- BEGIN #header -->

    and ends at line 212., so one line under the “END #header”:

    <!-- END #header -->
    </div>

    You could remove that whole part, and write our shortcode there:

    <?php 
    echo do_shortcode('[smartslider3 slider=15]');
    ?>

    Rather have a backup of the files, in case you need to modify them differently, as you do on first try.

    Thread Starter Ramesh R

    (@ramesh-r)

    Thanks for your prompt reply.
    I wish to clarify onething before make the changes in the code. do i need to replace with the shortcode only on header.php file ?? or all the above mentioned files??

    Awaiting for your reply.

    Sincerely,
    Ramesh R

    Plugin Support Gabor

    (@nextendweb_gabor)

    You only need to replace those codes with the shortcode in those files, which are used by you. So all these files could run in your website, but it’s up to it’s configuration, which one will run. You should check your website, replace the code in one file, then if you can’t see it affecting your website, then move on to the next file. Then if you see the slider on your site, then check out your other pages, if you see the slider on all of them, and if not, then again move on to the next file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘smart slider not working’ is closed to new replies.