Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #81498
    Shannon
    Participant

    Hello, I am using Catch Responsive Pro.
    I wish for only some pages (about 8) to have a testimonial quote (each one different) showing under a small image on the right side of page. Some pages will not have these.

    Do I use an Optional Sidebar widget for this purpose? There are only 3 of those.

    I have tried to set this up using HTML and CSS only, but it falls apart in smaller viewports.

    Is there a way to make more Optional Sidebar widgets?

    Thank-you

    #81505
    Mahesh
    Participant

    Hi @Shannon,

    For this purpose, you have to make a child theme. You can find detail on how to make child theme HERE.

    In child theme’s functions.php add the following codes.

    function catchresponsive_child_widgets_init() {
    	//Custom Sidebar One for page and post
    	register_sidebar( array(
    		'name' 				=> __( 'Custom Sidebar One', 'catch-responsive' ),
    		'id' 				=> 'custom-sidebar-one',
    		'description'		=> __( 'This is Custom Sidebar One', 'catch-responsive' ),
    		'before_widget' 	=> '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' 		=> "</aside>",
    		'before_title' 		=> '<h3 class="widget-title">',
    		'after_title' 		=> '</h3>'
    	) );
    
            register_sidebar( array(
    		'name' 				=> __( 'Custom Sidebar Two', 'catch-responsive' ),
    		'id' 				=> 'custom-sidebar-two',
    		'description'		=> __( 'This is Custom Sidebar Two', 'catch-responsive' ),
    		'before_widget' 	=> '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' 		=> "</aside>",
    		'before_title' 		=> '<h3 class="widget-title">',
    		'after_title' 		=> '</h3>'
    	) );
    
            /* You can add as many widgets as you want to.*/
    }
    add_action( 'widgets_init', 'catchresponsive_child_widgets_init' );

    Copy the sidebar.php from Catch Responsive Pro to the child theme and add custom conditions after line 110 for displaying desired widget in the desired page.

    This is a bit tricky job, so I recommend you to hire a customizer.

    Regards,
    Mahesh

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Use sidebar for a variety of testimonials?’ is closed to new replies.