• Hi,
    I’ve got php code of my slider
    <?php echo do_shortcode( '[advps-slideshow optset="1"]' ) ?>
    I want this just into homepage. Where should I put this code?
    Thanks for help
    marczuk

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, marczuk!

    If you have a homepage template such as front-page.php that code can go inside that template.

    You should have homepage template, more likely front-page.php. or it can be your index.php inside your theme. If you are sharing same template with other pages then you can use <?php is_front_page(); { echo do_shortcode( ‘[advps-slideshow optset=”1″]’ ) } ?> OR <?php is_home(); { echo do_shortcode( ‘[advps-slideshow optset=”1″]’ ) } ?>

    Thread Starter marczuk

    (@marczuk)

    I don’t have front-page.php. My theme name’s Pluto.
    Where exactly in index.php I should put that code? I’m completly begginer in coding.
    My index.php looks like that: http://scr.hu/19n9/06e3f
    I tried to put your code codemovement in some places of that, but then whole page stops working. :/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Where add slider php code?’ is closed to new replies.