Ready to get started?Download WordPress


[resolved] Problem pasting PHP Code ? (5 posts)

  1. inderjeets
    Posted 3 years ago #

    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 !

  2. Michelle Langston
    Theme Wrangler at Automattic
    Posted 3 years ago #

    Can you access your site using FTP?

  3. inderjeets
    Posted 3 years ago #

    Yes, I can !

  4. davidlfay
    Posted 3 years ago #

    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....
    	<?php get_sidebar(); ?>
    <?php get_footer(); ?>
  5. inderjeets
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic