Css code to be corrected to WordPress + Woocommerce
8 USDYou need to hide the attribute of the product in the Woocommerce store.You need a universal code that can be applied in other similar sites.There is a code, but it hides the line number:
/* Hide 2nd variation attribute selection♰ LDG forums */ .single-product .variations tr:nth-child(2) { display:none; }
It is necessary that the line is completely hidden.Sometimes there are 3 or 4 attributes (variation).It is necessary that a certain line is hidden.Here’s what Woocommerce experts say:
“Unfortunately, attributes are not actually present in HTML in the form of CSS identifiers or class names, so I chose this nth-child approach.To
/* Hide nth attribute for some products < LDG forums */
.postid-85 .variations tr:nth-child(2),
.postid-92 .variations tr:nth-child(2),
.postid-104 .variations tr:nth-child(3) {
display: no one
The
These product identifiers are just examples.”Who and for how much can do this?
Нужно подправить сss код на сайте с движком WordPress + Woocommerce. Только для тех, кто работал с этим движком задание.
То, что нужно сделать: https://ibb.co/VMPZxhQ
Нужно скрыть атрибут товара в магазине Woocommerce. Нужен универсальный код, который можно применить и в других подобных сайтах.
Есть код, но он скрывает номер строки:
/* Hide 2nd variation attribute selection | LDG forums */ .single-product .variations tr:nth-child(2) { display:none; }
а нужно, чтобы скрывалась строка полностью.
Потому что иногда бывает 3 или 4 атрибута (вариация). Необходимо, чтобы определенная строка была скрыта.
Вот что пишут специалисты из Woocommerce:
"К сожалению, имена атрибутов на самом деле не присутствуют в HTML в виде идентификаторов CSS или имен классов, поэтому я выбрал этот nth-child
подход.
Чтобы достичь желаемого, вы можете ограничить свой CSS определенными идентификаторами сообщений / продуктов, изучив body
классы для продукта, например postid-85
. Разные темы могут применять эти отдельные классы тела по-разному (или не применять вообще), поэтому вам, возможно, придется проверить страницы своих продуктов на предмет точного формата.
Когда у вас есть этот класс, вы можете складывать правила CSS следующим образом (обратите внимание, что после последнего правила не должно быть запятой):
/* Hide nth attribute for some products | LDG forums */
.postid-85 .variations tr:nth-child(2),
.postid-92 .variations tr:nth-child(2),
.postid-104 .variations tr:nth-child(3) {
display:none;
}
Эти идентификаторы продуктов являются всего лишь примерами."
Кто и за сколько может это сделать?
Нужно скрыть Shipping estimate - всю строчку
Client's feedback on cooperation with Batyr Ahmetov
Css code to be corrected to WordPress + WoocommerceEverything is great! The task is done quickly and safely, without freezes at all. Very grateful. Ready to work together.
Freelancer's feedback on cooperation with Vladimir Glebov
Css code to be corrected to WordPress + WoocommerceA great order I recommend it all.🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟
-
1446 115 2 1 Hi, write help to hide CSS style attributes.
Please call me, I will be happy to help.
Здравствуйте, пишите помогу скрыть css стилем атрибуты.
Обращайтесь, буду рад помочь
-
2447 176 2 2 Good Morning Vladimir ready to write code to hide variable lists I will do everything quickly and quality
Добрый день Владимир готов написать код для скрытия вариативных списков все сделаю быстро и качественно
-
Добрый день. Если Вам нужно скрыть на странице продукта определенный атрибут, то сделать это лучше через хук в 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 and CSS
Layout of website blocks css (bootstrap) + html
25 USD
For periodic work, we need a frontend developer who can layout elements/blocks of the website. Important: - clean code - use of bootstrap - responsive design, cross-browser compatibility - speed (pagespeed, etc.) - accuracy and meeting deadlines - experience with WordPress is… HTML and CSS ∙ 18 proposals |
Admin panel for an article websiteGood day. It is necessary to write an admin panel for a gaming article website (this website - https://themeforest.net/item/goodgames-portal-store-html-gaming-template/17704593) The admin panel should include: 1. **User Management:** - Creating new users. - Editing… HTML and CSS, PHP ∙ 14 proposals |
Fix the layout according to Figma on 2 pages on WP+Elementor PRO
25 USD
I have 2 ready-made pages designed on WordPress+Elementor PRO. The layout in some places is not done qualitatively, it is necessary to correct the layout on these pages clearly following the design in Figma. Deadline for completion is 29.03.2024!!! Please contact only… HTML and CSS, Web design ∙ 7 proposals |
Website layout according to the design.
510 USD
Good day. There is a layout in Figma: https://www.figma.com/file/RGVIymprYc4QaiJ5qp3iwL/LayerGame?type=design&node-id=0-1&mode=design There is a UI kit and a ready-made layout of the Main page, implemented in React, animations are done using GSAP. It is necessary to layout 2… HTML and CSS, JavaScript ∙ 39 proposals |
I am looking for a WordPress and Okay CMS (Full Stack) programmerHello everyone! I need a programmer for WordPress and Okay CMS platforms to make improvements and enhancements on websites. Mainly these are online stores, landing pages, and implementing Google Ads tags. It is important that this collaboration does not have the sole purpose of… HTML and CSS, Online stores and e-commerce ∙ 7 proposals |