WordPress.org

Ready to get started?Download WordPress

Forums

Easing Slider "Lite"
[resolved] Lost slideshow when activate homepage as static page (11 posts)

  1. sabuk013
    Member
    Posted 8 months ago #

    Hi!
    I was so proud: my slideshow works
    But after I activate my homepage as static page the slideshow become lost.
    Can anyone help me?
    Thanks a lot!
    sabuk

    http://wordpress.org/plugins/easing-slider/

  2. MatthewRuddy
    Member
    Plugin Author

    Posted 8 months ago #

    Hi @sabuk013, you'll need to insert the shortcode [easingsliderlite] into your static homepage within WordPress. Have you done this?

    You may alternatively have to directly insert the Easing Slider PHP function into your static page's theme file, depending on your setup.

  3. sabuk013
    Member
    Posted 8 months ago #

    I've insert this code into my header.php

    <?php if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?>
    <?php

    Where do I find the static page's theme file?
    I use WordPress 3.6.1 and TwentyEleven theme... :S

  4. MatthewRuddy
    Member
    Plugin Author

    Posted 8 months ago #

    It completely depends on the structure of the theme and how it has been coded. However, if you're static front page is using the same header as other pages, you should still be able to see the slideshow.

    Can you link me to an example? I'll take a quick look for you.

  5. sabuk013
    Member
    Posted 8 months ago #

    I have to correct my request: slideshow works, when I activate homepage as static page...this is not the main problem.
    But when I order the slideshow to work only at homepage and activate as static page the slideshow become lost.

    My Code in header.php looks like this:
    <?php if ( is_home() && function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?> <?php

    Link to my wordpress site?

  6. MatthewRuddy
    Member
    Plugin Author

    Posted 8 months ago #

    That's because the static page you're setting may not be considered the homepage, hence is_home() is returning false and you're not seeing the slideshow.

    Do you see the slideshow when just using the code below inside your static home page theme file?

    <?php
    if ( function_exists('easingsliderlite') ) {
        easingsliderlite();
    }
    ?>
  7. Havoc73
    Member
    Posted 8 months ago #

    <?php if (is_front_page()

    Should be work.

    http://codex.wordpress.org/Conditional_Tags

  8. sabuk013
    Member
    Posted 8 months ago #

    Yes! It works!
    Thanks for your help.

  9. Havoc73
    Member
    Posted 8 months ago #

    I'm glad it helped. ^^

  10. MatthewRuddy
    Member
    Plugin Author

    Posted 8 months ago #

    Awesome, great stuff. Didn't think at is_front_page() would work for this application - my apologies!

    Marking this as resolved :)

  11. sabuk013
    Member
    Posted 8 months ago #

    That's the great benefit of forums with several people :)
    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.