WordPress.org

Forums

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

  1. sabuk013
    Member
    Posted 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years 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 2 years ago #

    <?php if (is_front_page()

    Should be work.

    http://codex.wordpress.org/Conditional_Tags

  8. sabuk013
    Member
    Posted 2 years ago #

    Yes! It works!
    Thanks for your help.

  9. Havoc73
    Member
    Posted 2 years ago #

    I'm glad it helped. ^^

  10. MatthewRuddy
    Member
    Plugin Author

    Posted 2 years 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 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easing Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.