Css code to be corrected to WordPress + Woocommerce
You 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 what you want, you can limit your CSS to certain messages / product identifiers by studying body classes for the product, such as postid-85.Different topics may apply these individual body classes differently (or not apply at all), so you may have to check the pages of your products on the subject of the exact format.When you have this class, you can set the CSS rules as follows (not that after the last rule should not be set):
/* 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?
Нужно скрыть Shipping estimate - всю строчку
Client's review of cooperation with Didar Zhexembaev
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 review of cooperation with Vladimir Glebov
Css code to be corrected to WordPress + WoocommerceA great order I recommend it all.🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟
-
Добрый день. Если Вам нужно скрыть на странице продукта определенный атрибут, то сделать это лучше через хук в 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
Layout of a page for a website on Khoroshop + and editing 2 written pages
112 USD
Hello! Task: To create the "Loyalty Program" page and make adjustments to the "Wholesale Cooperation" and "Corporate Orders" pages Page "Loyalty Program": - Create the page in HTML code according to our design in Figma - Adapt for desktop and mobile versions, iOS and… HTML & CSS ∙ 1 day 2 hours back ∙ 34 proposals |
I am looking for a person who can help fill the advertising agency website on WordPress.I created the pages in the cloud and now I have done everything on WordPress. I am looking for someone who can help fill the website with content. Quickly and efficiently, certain photos will probably need to be generated in GPT. I will try to help. There are about 15 pages. AI Content Creation, HTML & CSS ∙ 1 day 7 hours back ∙ 37 proposals |
I need to create a website from a PDF, is it possible?The design is already fully drawn but we only have it in PDF, as the Figma file was lost... There may be discrepancies with it. This is acceptable. Do we need to redraw it in Figma? Or is it possible to layout and put it on a CMS, and if so, which one? There will be a lot of… HTML & CSS, Web Programming ∙ 1 day 7 hours back ∙ 109 proposals |
Development of a WordPress + WooCommerce online store# Development of an Online Store for Agricultural Equipment The design mockup is currently in the final stages of development. I fully understand that without a ready mockup, the final estimate will be inaccurate. However, if you have already implemented similar e-commerce… Content Management Systems, HTML & CSS ∙ 1 day 15 hours back ∙ 71 proposals |
Layout designer for multi-page advertorial website (Health Media) — vibe coding, clean code
150 USD
We need to create a multi-page website in the style of health media, based on healthinsider.news. Not just a landing page — a full-fledged pseudo-editorial site (advertorial), designed to attract traffic from Meta Ads. IMPORTANT: the task is to be done through vibe coding… HTML & CSS, Web Programming ∙ 1 day 23 hours back ∙ 64 proposals |