{"id":1515,"date":"2017-04-20T03:39:44","date_gmt":"2017-04-20T03:39:44","guid":{"rendered":"http:\/\/docs.contentviewspro.com\/?p=1515"},"modified":"2023-12-27T09:02:44","modified_gmt":"2023-12-27T09:02:44","password":"","slug":"woocommerce-hide-the-button-add-to-cart-but-show-the-price","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/woocommerce-hide-the-button-add-to-cart-but-show-the-price\/","title":{"rendered":"Woocommerce &#8211; hide \u201cAdd to cart\u201d button but show the Price"},"content":{"rendered":"<p>With Content Views Pro, you can show any products easily.<br \/>\nTo hide the button \u201cAdd to card\u201d but show the Price, please add this code to <strong>Custom CSS<\/strong> field in Content Views >> Settings page:<\/p>\n<p># For all Views:<\/p>\n<pre style=\"font-size:13px\">\n.pt-cv-view .woocommerce .add_to_cart_button {display:none!important}\n<\/pre>\n<p># For specific View only:<\/p>\n<pre style=\"font-size:13px\">\n#pt-cv-view-VIEW_ID \n.woocommerce .add_to_cart_button {display:none!important}\n<\/pre>\n<p>(replace <strong>VIEW_ID<\/strong> with <a href=\"https:\/\/contentviewspro.com\/documentation\/article\/what-is-id-of-a-view\/\">ID of your View<\/a>)<\/p>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Content Views Pro, you can show any products easily. To hide the button \u201cAdd to card\u201d but show the Price, please add this code to Custom CSS field in Content Views >> Settings page: # For all Views: .pt-cv-view .woocommerce .add_to_cart_button {display:none!important} # For specific View only: #pt-cv-view-VIEW_ID .woocommerce .add_to_cart_button {display:none!important} (replace VIEW_ID with &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/woocommerce-hide-the-button-add-to-cart-but-show-the-price\/\"> <span class=\"screen-reader-text\">Woocommerce &#8211; hide \u201cAdd to cart\u201d button but show the Price<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[50],"doc_tag":[20],"class_list":["post-1515","docs","type-docs","status-publish","hentry","doc_category-woocommerce","doc_tag-woocommerce"],"year_month":"2026-09","word_count":70,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin1","author_nicename":"admin1","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/admin1\/"},"doc_category_info":[{"term_name":"WooCommerce","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/woocommerce\/"}],"doc_tag_info":[{"term_name":"WooCommerce","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/woocommerce\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=1515"}],"version-history":[{"count":1,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1515\/revisions"}],"predecessor-version":[{"id":5367,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/1515\/revisions\/5367"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=1515"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=1515"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=1515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}