Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #185565
    Ralf Dangel
    Participant

    Hello,

    can i implement an Image Rotation instead of an static Image for the Header Image?
    It belongs to Theme Catchbox Pro

    Thanks a lot!

    #185586
    Skandha
    Participant

    @rdangel07: Hello there,
    Can you please post in your site URL and elaborate the issue you are having?

    Kind Regards,
    Skandha

    #185621
    Ralf Dangel
    Participant

    Hello 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
    Ralf

    #185804
    Skandha
    Participant

    @rdangel07: Hello Ralf,
    For that you can use the Featured Slider Option.
    Go to => Appearance => Customize => Featured Slider

    Let me know if this helps you out!
    Kind Regards,
    Skandha

    #185908
    Ralf Dangel
    Participant

    Hello Skandha,

    Thanks a lot!
    in that area (slider options) i can enable slider for

    Homepage
    Entire Site
    Disable

    But not for the Header Image. Maybe i’m in the wrong menue?
    Thanks!

    Regards

    Ralf

    #185953
    Skandha
    Participant

    @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,
    Skandha

    #186597
    Ralf Dangel
    Participant

    Hi 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

    #186613
    Skandha
    Participant

    @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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Header Image – Image rotation Catchbox pro’ is closed to new replies.