Jquery UI tabs
Disable ui tabs menu
$("#tabs").tabs("option","disabled", [0, 1]); // Option 1
$( "#tabs" ).tabs( "disable", "#tabs-2" ); // Option 2
$( '#tabs li.disabled-tab' ).addClass( 'ui-state-disabled' ); // Option 3
Hi guys !!! How to add like button in media gallery item using Buddypress and rtMedia WordPress plugin? Please follow the steps below. Step 1: Override the “media-gallery-item.php” in your WordPress theme. wp-content/themes/mytheme-folder-name/rtmedia/media/media-gallery-item.php Step 2: Place the code anywhere inside of your “li” tag. <?php wdes_rtmedia_like( rtmedia_id(), bp_loggedin_user_id() ); ?> Step 3: Paste this code…
GRAVITY FORM .gform_wrapper { margin: 0!important; max-width: 100%!important; } .gform_wrapper .top_label li.gfield input, .gform_wrapper .top_label li.gfield select, .gform_wrapper .top_label li.gfield textarea { width: 100%!important; padding-right: 2%!important; padding-left: 2%!important; } .gform_wrapper .top_label li.gfield .ginput_left, .gform_wrapper .top_label li.gfield .ginput_right { width: 49%!important; } .gform_wrapper .gform_footer { padding: 0; margin: 10px 0 0 0; } WOOCOMMERCE TABS .woocommerce-tabs…
All of the codes below will be place on your function.php Change number of products displayed per page add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 1000;' ), 20 ); Archive columns global $woocommerce_loop; $woocommerce_loop['columns'] = 4; // Change the product category list column to 4. Archive columns with body class add_filter('body_class','archive_columns'); function archive_columns($classes) { global $woocommerce_loop; $classes[]…
Override rtMedia media-gallery.php template into current WordPress theme is now not a problem. For example you have artist role in your users and you want different template for the artist role. This apply in `http://www.sample.com/members/artist/media/music/` page. add_filter( 'rtmedia_template_filter', 'rtmedia_template_filter_override', 10, 3 ); function rtmedia_template_filter_override( $template ){ global $bp; $role = get_user_meta( $bp->displayed_user->id, 'wp_capabilities', true );…
Renaming existing tabs. add_filter( ‘woocommerce_product_tabs’, ‘woo_rename_tabs’, 98 ); function woo_rename_tabs( $tabs ) { $tabs[’description’] = array( ‘title’ => __( ‘WORKING’, ‘woocommerce’ ), ‘priority’ => 10, ‘callback’ => ‘the_content’ ); $tabs[’reviews’] = array( ‘title’ => __( ‘FAULTY’, ‘woocommerce’ ), ‘priority’ => 30, ‘callback’ => ‘woo_before_tabs_title’ ); return $tabs; } function woo_before_tabs_title() { the_field(‘faulty’); } This code…
WDES rtMedia Music template override All files inside the “templates” folder can be override in your current theme/child theme. To do that, create a “wdes-rtmedia-music” in your current theme/child theme and place the template file inside of “wdes-rtmedia-music” folder. Example: You want to override the “all.php” to your theme/child theme. wdes-rtmedia-music > lib > templates > all.php Override…