fbpx
-50% OFF Black Friday coupon: BF2021

There is no widget-title class wrapping the STOCK STATUS widtget

HomeTopicsSupport forumThere is no widget-title class wrapping the STOCK STATUS widtget
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17310
    Avatar
    rrogers
    Participant

    Hi there,

    There is no widget-title class wrapping the STOCK STATUS widtget, I fixed like this:
    framework/includes/widgets/class-wc-stock-status.php

    	public function widget( $args, $instance ) {	
    ?>
    		<span class="widget-title title">
    		<span>
    			<?php
    			echo wp_kses( $args['before_widget'], 'xts_widget' );
    
    			if ( isset( $instance['title'] ) && $instance['title'] ) {
    				echo wp_kses( $args['before_title'], 'xts_widget' ) . $instance['title'] . wp_kses( $args['after_title'], 'xts_widget' ); // phpcs:ignore
    			}
    
    			$current_stock_status = isset( $_GET['stock_status'] ) ? explode( ',', $_GET['stock_status'] ) : array(); // phpcs:ignore
    
    			?>
    			</span>
    	 </span>
    • This topic was modified 4 days, 4 hours ago by Avatarrrogers.
    #17318
    Artem Temos
    Artem Temos
    Keymaster

    Hello,

    Before and after title tag are registered along with the widgets area and are displayed as variables https://monosnap.com/file/b2MID9uYqUkvXWx9N1kDjxTjH3MMXU
    You don’t need to add an extra tag there.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Sign in

No account yet?

Create an Account