WordPress.org

Support

Support » Themes and Templates » [Resolved] Problem pasting PHP Code ?

[Resolved] Problem pasting PHP Code ?

  • I want to use the Smooth Slider Plugin on top of my blogs only on front page. And, I’m using the free version of Platform theme though I know that I have to paste the PHP code of Smooth Slider in Platform: template.postloop.php, but I’m not getting where exactly I’ve to paste it. As, I know nothing about PHP, so please provide enough explanation. It would be very helpful for me.

    Thanks !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michelle Langston

    @chellycat

    Theme Wrangler at Automattic

    Can you access your site using FTP?

    Yes, I can !

    If you want the slider to appear on the front page then you will want to post the PHP in index.php for your theme. Don’t post it in a loop or your slider will appear everytime the loop is executed.

    <?php get_header(); ?>
    <div id="wrapper">
    	<div id="top"><?php get_smooth_slider(); ?></div>
    	<div id="content"  class="home">
    		Lorem ipsum....
    	</div>
    	<?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>

    Thanks a lot David for your reply ! May God bless you !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Problem pasting PHP Code ?’ is closed to new replies.
Skip to toolbar