- This topic has 7 replies, 2 voices, and was last updated 9 years, 12 months ago by ashrafashraf.
-
AuthorPosts
-
May 15, 2014 at 2:22 am #30665ashrafashrafMember
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.May 15, 2014 at 9:18 am #30720SakinKeymaster@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 );
May 15, 2014 at 7:09 pm #30790ashrafashrafMemberThank 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 );May 15, 2014 at 7:22 pm #30793ashrafashrafMemberCan do please check your code again ? please
My site became white again,
I think there is something must we add it!!!Thanks
May 15, 2014 at 9:28 pm #30806ashrafashrafMemberI 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!!!!
May 15, 2014 at 9:42 pm #30808ashrafashrafMemberI 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/wV46May 16, 2014 at 1:19 am #30851SakinKeymaster@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; }
May 16, 2014 at 1:25 am #30853ashrafashrafMemberwow, You are sooooo clever.
Please, How you can fix this issue and my site under Maintainers ?Thanks again.
-
AuthorPosts
- The topic ‘Add new slider’ is closed to new replies.