Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #30665
    ashrafashraf
    Member

    Hi Sakin,
    Please,
    How can i add slider on the another page on my site, I mean not on the home page,
    But i want to put the slider on the top of page(headar) exact like the slider position on the home page.

    my slider code is:
    <?php if ( function_exists( “easingsliderlite” ) ) { easingsliderlite(); } ?>

    Regards
    A.J.

    #30720
    Sakin
    Keymaster

    @ashrafashraf: You can use is_page condition and create function same like before. Here is sample that you can add just below your previous code. There no need to open <?php as it’s already been open in your previous code.

    function catchbox_child_easingsliderlite() {
    	// Loads slider only in page ID 42
    	if ( is_page( 42 ) && function_exists( "easingsliderlite" ) ) { 
    		easingsliderlite(); 
    	}
    }
    add_action( 'catchbox_before_primary', 'catchbox_extra_gallery', 15 );
    #30790
    ashrafashraf
    Member

    Thank you so much Sakin,
    So i will add only the following on my functions.php child theme:

    function catchbox_child_easingsliderlite() {
    // Loads slider only in page ID 42
    if ( is_page( 42 ) && function_exists( "easingsliderlite" ) ) {
    easingsliderlite();
    }
    }
    add_action( 'catchbox_before_primary', 'catchbox_extra_gallery', 15 );

    #30793
    ashrafashraf
    Member

    Can do please check your code again ? please
    My site became white again,
    I think there is something must we add it!!!

    Thanks

    #30806
    ashrafashraf
    Member

    I added your code, And my site iw working now, But I don’t get the slider ON MY PAGE.
    And then I added the following instead of:
    function catchbox_child_easingsliderlite() {
    /* // Loads slider only in page ID 42*/
    if ( is_page(60)) {
    echo do_shortcode(‘[easingsliderlite]’);
    }
    }
    add_action( ‘catchbox_before_primary’, ‘catchbox_extra_gallery’, 15 );

    But Its is also not appear on my page,So please Help!!!!

    #30808
    ashrafashraf
    Member

    I fixed, Thanks sir for your support,
    Please, My new slide is not one the center so how can i fix that ?please
    http://grab.by/wV46

    #30851
    Sakin
    Keymaster

    @ashrafashraf: Yes that Page ID 42 is just sample, you need to add the ID of the page where you want the slider.
    You can add the following css in “Appearance => Theme Options => Custom CSS” box.
    .easingsliderlite, .easingsliderlite-shadow { margin: 0 auto !important; }

    #30853
    ashrafashraf
    Member

    wow, You are sooooo clever.
    Please, How you can fix this issue and my site under Maintainers ?

    Thanks again.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Add new slider’ is closed to new replies.