37

How to Expand Work Hours Block by Default in MyListing

Powered by WPCodeBox

The Expand Work Hours Block by Default code snippet provides enhanced control over Single Listings within your MyListing website. By default, the Work Hours block is collapsed, but this snippet will conveniently expand it, improving user experience and listing visibility.


/**
 * Author: MyListing Club
 * Author URI: https://mylisting.club
 */

jQuery( document ).ready( function($)
 {
    $('.work-hours-block > .pf-head').removeClass('collapsed').attr('aria-expanded', true );
    $('.work-hours-block > .pf-body').addClass('in').attr('aria-expanded', true );
});

Other Snippets

WPCodeBox is a WordPress Code Snippets Manager that allows you to share your WordPress Code Snippets across your sites.