Budget: 200 UAH Deadline: 1 day
Hi, write help to hide CSS style attributes.
Please call me, I will be happy to help.
Didar Zhexembaev
Winning proposal- Projects 183
- Rating -
- Rating 1 572
Budget: 300 UAH Deadline: 1 day
Good Morning Vladimir ready to write code to hide variable lists I will do everything quickly and quality
Proposals are currently absent
Proposals concealed
-
Aleksandr S. 10 June 2021Добрый день. Если Вам нужно скрыть на странице продукта определенный атрибут, то сделать это лучше через хук в functions.php
Что-то типа этого
function mycode_hide_attributes_from_additional_info_tabs( $attributes, $product ) { /** * Array of attributes to hide from the Additional Information * tab on single WooCommerce product pages. */ $hidden_attributes = [ 'pa_network', 'pa_merchant', 'pa_brand', ]; foreach ( $hidden_attributes as $hidden_attribute ) { if ( ! isset( $attributes[ $hidden_attribute ] ) ) { continue; } $attribute = $attributes[ $hidden_attribute ]; $attribute->set_visible( false ); } return $attributes;} add_filter( 'woocommerce_product_get_attributes', 'mycode_hide_attributes_from_additional_info_tabs', 20, 2 );
Где pa_network', 'pa_merchant', 'pa_brand', - это название таксономии атрибута.
Current freelance projects in the category HTML & CSS
-
Not specified
Pet Food
Testing & QA 12 proposals 11:13
-
Not specified
Transfer of the finished main page from Bolt.new to WordPress/Elementor Pro
Web Programming 67 proposals 4 August
-
Not specified
Automation based on Google Sheets for signing up for trial classes (online language school)
Javascript and Typescript 63 proposals 4 August
-
Not specified
Page layout on WordPress (ACF) according to the existing site style
Web Programming 104 proposals 4 August
-
Not specified
Redesign the website on WordPress.
Web Programming 76 proposals 4 August