WordPress.org

Ready to get started?Download WordPress

Forums

Easing Slider "Lite"
[resolved] Slider disappears in "Search" results page. (6 posts)

  1. Anthyx
    Member
    Posted 1 year ago #

    Hi Matthew,

    I have a problem: when i search for something in my site, the slider is missing from the results page.

    In Chrome and Explorer an empty square with a small cross is shown.
    In Firefox nothing at all appears.

    Any idea how to fix this?

    Many thanks again for your great plugin and support.

    Ciao

    A.

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

  2. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Hi @Anthyx, can you link me to an example? I'll take a quick look for you.

  3. Anthyx
    Member
    Posted 1 year ago #

    Hi Mat,

    my site is not online yet, do you prefer some screenshots or the code I use to insert your plugin in the pages?

    Let me know and tnx a lot.

    A.

  4. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Anthyx, try pasting the code you've used to insert the plugin, but I'm not sure that will be of much help. Only real way to diagnose any issues is to see them for myself :(

  5. Anthyx
    Member
    Posted 1 year ago #

    Mat,

    I found the solution, hope this can help someone else with the same problem:

    here is the code.

    as you can see there is a "if" and an "else if" to put the slider just in "Home" and "Post" pages.

    I've just added "or is_search()" (without quotes) after "is_front_page() or is_home()" .. et voilĂ , it works perfectly.

    <?php
                    // Check to see if the header image has been removed
                    $header_image = get_header_image();
    
                    if ( is_front_page() or is_home() ) {
                        if ( function_exists( 'easingsliderlite' ) ) {
                            easingsliderlite();}
                        }
                    else if ( $header_image ) :
                        // Compatibility with versions of WordPress prior to 3.4.
                        if ( function_exists( 'get_custom_header' ) ) {
                            // We need to figure out what the minimum width should be for our featured image.
                            // This result would be the suggested width if the theme were to implement flexible widths.
                            $header_image_width = get_theme_support( 'custom-header', 'width' );
                        } else {
                            $header_image_width = HEADER_IMAGE_WIDTH;
                        }
                        ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    Again, many thanks for your help!

    Ciao!

  6. MatthewRuddy
    Member
    Plugin Author

    Posted 1 year ago #

    Awesome :) Glad you managed to figure this out! Thanks for letting us know.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.