Morning, I have a custom field setup for Woocommerce Products that should only display if the field has a value. If there is no value, the field should not output anything to the front-end of the site. The field in question is called "View Product Specifications" and creates a URL link to 3rd party website page.
Sample page that has no value in the field:
hidden link?
What i used below:
[wpv-conditional if="( NOT(empty($(wpcf-product-specifications-url))) )"]View Product Specifications[/wpv-conditional]
Hello,
What page builder are you using?
Since [wpv-conditional] is a shortcode, you need to put it into a pure text widget, if you are using WordPress built-in Blocks editor, please try Shortcode block:
https://wordpress.org/support/article/shortcode-block/
Hi, I am using Divi Builder. I tried the "Text" and "Code" module but didn't have any effect. Still get the same display as before
Did you install Toolset Blocks/Views plugin in your website?
[wpv-conditional] is a shortcode of Blocks/Views plugin, you can download them here:
https://toolset.com/account/downloads/
And I assume the problem URL you mentioned above is a single product post, you can follow our document to customize the single product post:
https://toolset.com/course-chapter/templates-for-single-product-pages/
More help:
https://toolset.com/course/custom-woocommerce-sites/