-
AuthorPosts
-
April 13, 2019 at 11:39 am #1090334
Hi!
Is ist possible to hide the price in the product-grid?
All the best
KaiApril 14, 2019 at 2:02 am #1090484Hey vollstark,
Yes we can do that, Please see the screenshot in Private Content area of the area I believe you want to hide.
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:.inner_product_header_cell > .price,.inner_product_header_cell > .woocommerce-de_price_taxrate,.inner_product_header_cell > .woocommerce_de_versandkosten { display: none !important; }
Best regards,
MikeApril 19, 2019 at 10:53 am #1092660Ah. Cool. It works very well :-) Thanks a lot.
At the shop the prices are hidden as well. Is it possible to leave them in the shop but not at the product grid I set on a new page?
Hm. Do you know what I mean ? ;-)All the best,
KaiApril 19, 2019 at 2:03 pm #1092680Hi,
I see, you would like to only not show them on the one page, please try this css:#top.page-id-10428 .inner_product_header_cell > .price,#top.page-id-10428 .inner_product_header_cell > .woocommerce-de_price_taxrate,#top.page-id-10428 .inner_product_header_cell > .woocommerce_de_versandkosten { display: none !important; }
Best regards,
MikeApril 19, 2019 at 2:29 pm #1092685Hi!
Thanks. It seem it only works when i am logged in!? hm…
April 19, 2019 at 11:53 pm #1092787Hi,
Thats odd, where did you place the css? Please try in the WordPress > Customize > Additional CSS field.
Can we have an admin login to see?Best regards,
MikeApril 20, 2019 at 8:02 am #1092862Hi!
Yes, I placed it in there.
Yes, you can :-)April 20, 2019 at 5:07 pm #1092936Hi,
Thank for the login, I see that your css in the Quick CSS, I saved the theme options “save all settings” button one more time, and then checked your element on Firefox, Edge, and Chrome incognito. and the price was not showing.
Please see the screenshot in Private Content area.
I also tested logging out in the same window and then checking and the price was not showing, but it does on the product page as you wanted, (second screenshot).
I assume you are experiencing a cache issue, please try clearing your cache or use incognito.Best regards,
MikeApril 21, 2019 at 8:33 am #1093008Hi!
Ah, ok :-) Thank you so much :-)
How can I add some more pages t this script? ;-)
I wanna hide them on all pages except the shop sites. You know what I mean? ;-)All the best,
Kai- This reply was modified 5 years, 7 months ago by vollstark.
April 21, 2019 at 2:14 pm #1093040Hi,
I think we should rewrite it so we are not trying to add individual pages, since you only want the price on “single-product” pages, we should try:#top:not(.single-product) .inner_product_header_cell > .price,#top:not(.single-product) .inner_product_header_cell > .woocommerce-de_price_taxrate,#top:not(.single-product) .inner_product_header_cell > .woocommerce_de_versandkosten { display: none !important; }
I added this for you, Please clear your browser cache and check.
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.