Tagged: Catchbox Pro Header Image rotate
- This topic has 7 replies, 2 voices, and was last updated 5 years, 2 months ago by Skandha.
-
AuthorPosts
-
October 10, 2019 at 2:39 pm #185565Ralf DangelParticipant
Hello,
can i implement an Image Rotation instead of an static Image for the Header Image?
It belongs to Theme Catchbox ProThanks a lot!
October 11, 2019 at 4:33 am #185586SkandhaParticipant@rdangel07: Hello there,
Can you please post in your site URL and elaborate the issue you are having?Kind Regards,
SkandhaOctober 11, 2019 at 1:42 pm #185621Ralf DangelParticipantHello Skandha,
thanks! Here the Link:
http://web55680.greatnet-hosting.de/is it possible to rotate the Pictures in the Header (over the blue menue bar) instead of an static Image?
Thanks!Regards
RalfOctober 14, 2019 at 2:19 am #185804SkandhaParticipant@rdangel07: Hello Ralf,
For that you can use the Featured Slider Option.
Go to => Appearance => Customize => Featured SliderLet me know if this helps you out!
Kind Regards,
SkandhaOctober 15, 2019 at 1:54 pm #185908Ralf DangelParticipantHello Skandha,
Thanks a lot!
in that area (slider options) i can enable slider forHomepage
Entire Site
DisableBut not for the Header Image. Maybe i’m in the wrong menue?
Thanks!Regards
Ralf
October 16, 2019 at 7:10 am #185953SkandhaParticipant@rdangel07: Hello Ralf,
To have the slider in the Header Image position you will need to create a child theme and do a little bit of customization. Let me know if you are familiar with child theme customization otherwise I suggest you to hire a customizer.Kind Regards,
SkandhaOctober 20, 2019 at 5:33 am #186597Ralf DangelParticipantHi Skandha,
i have no experience with child themes… so far 🙂
But Maybe i can learn it? I have experince with HTML, CSS, and also a Little PHP!
Is there documentation about child themes available?Thanks!
Best regards
Ralf
October 20, 2019 at 6:35 am #186613SkandhaParticipant@rdangel07: Hello Ralf,
Firstly you will need to create a child theme. You can use our Generate Child Theme plugin to create a child theme. Install and Activate the plugin.
Now,
Go to => Dashboard => Generate Child Theme => Select Parent Theme as Catch Box Pro, fill the remaining fields and Click Generate. This will create and activate the child theme.Now Go to => Child Theme Folder => functions.php and add the following Code.
function catchbox_slider_display() { global $wp_query; $options = catchbox_get_options(); $enableslider = $options['enable_slider']; $sliderselect = $options['select_slider_type']; $sliderlayout = $options['select_slider_layout']; // Front page displays in Reading Settings $page_for_posts = get_option('page_for_posts'); // Get Page ID outside Loop $page_id = $wp_query->get_queried_object_id(); if ( ( 'enable-slider-allpage' == $enableslider ) || ( ( is_front_page() || ( is_home() && $page_id != $page_for_posts ) ) && 'enable-slider-homepage' == $enableslider ) ) : // Select Slider if ( $sliderselect =='image-slider' && $sliderlayout =='fullwidth' && function_exists( 'catchbox_imagesliders' ) ) { add_action( 'catchbox_before_headercontent', 'catchbox_imagesliders', 10 ); } elseif ( $sliderselect =='post-slider' && $sliderlayout =='fullwidth' && function_exists( 'catchbox_sliders' ) ) { add_action( 'catchbox_before_headercontent', 'catchbox_sliders', 10 ); } elseif ( $sliderselect =='page-slider' && $sliderlayout =='fullwidth' && function_exists( 'catchbox_page_sliders' ) ) { add_action( 'catchbox_before_headercontent', 'catchbox_page_sliders', 10 ); } elseif ( $sliderselect =='category-slider' && $sliderlayout =='fullwidth' && function_exists( 'catchbox_category_sliders' ) ) { add_action( 'catchbox_before_headercontent', 'catchbox_category_sliders', 10 ); } elseif ( $sliderselect =='image-slider' && function_exists( 'catchbox_imagesliders' ) ) { add_action( 'catchbox_before_headercontent', 'catchbox_imagesliders', 10 ); } elseif ( 'post-slider' == $sliderselect && function_exists( 'catchbox_sliders' ) ) { add_action( 'catchbox_before_headercontent', 'catchbox_sliders', 10 ); } elseif ( $sliderselect =='page-slider' && function_exists( 'catchbox_page_sliders' ) ) { add_action( 'catchbox_before_headercontent', 'catchbox_page_sliders', 10 ); } elseif ( 'category-slider' == $sliderselect && function_exists( 'catchbox_category_sliders' ) ) { add_action( 'catchbox_before_headercontent', 'catchbox_category_sliders', 10 ); } endif; }
When you enable the slider now, it should show up where the Header Image shows up.
Let me know if this works out!
Kind Regards,
Skandha -
AuthorPosts
- The topic ‘Header Image – Image rotation Catchbox pro’ is closed to new replies.