Hide subcategories (widget)
Hide subcategories (widget)
Hide subcategories (widget)
Query in query for Widget
Add default widgets to footer
As you note in your comment there are plugins that allow you to insert different widgets on different types of pages. If the plugin doesn’t include the possibility you need, you’ll have to build it yourself. First, you’ll have to familiarize yourself with how to add widget areas (sidebars) to your (child) theme. It isn’t … Read more
How do I get the sub categories of the parent when in a sub category?
you won’t need css for that // Create the widget output. public function widget( $args, $instance ) { $prod_image_url = get_post_meta( ‘prod_image_url’ ); if(!empty($prod_image_url)){ echo $args[‘before_widget’] . $args[‘before_title’] . $args[‘after_title’]; if( is_single() ): ?> <div id=”show”> <img class=”prodimage” src=”https://wordpress.stackexchange.com/questions/253903/<?php echo ( get_post_meta( get_the_ID(),”prod_image_url’, true ) ); ?>”/><br> </div> <?php else: echo ”; endif; } ?> … Read more
Disable widgets in customizer for sidebar
Go to the developers tab you can find there all the previous versions: 4.16 you will have to install the plugin manually uploading the ZIP, this is not the correct way! always try to work with the latest version, but you can use the old version in the meantime, consider hiring a developer to make … Read more
How to track whether the user has changed the value of the field in the widget or not?
You can use CSS and pseudo classes, like :nth-of-type(n) to target that specific widget. You could also use Javascript in a similar way, with jQuery .addClass(‘classname’), and/or “finding” the widget through .nth-child() selector, then applying .css(‘display’,’none’).