*

Larry12

  • **
  • 13 posts
How to hide the Phone number block
« on: April 13, 2018, 06:47:43 PM »
Hello,

How can I hide the phone number block, only when the field input is empty. So, instead of the 'No phone number' message I want to delete the whole block with the phone icon.

*

MB Themes

Re: How to hide the Phone number block
« Reply #1 on: April 16, 2018, 07:54:34 AM »
@Larry
Code: [Select]
if( $phone <> '') {
... hide code
}

or

Code: [Select]
if( $phone <> __('No phone number', 'zara')) {
.. hide code
}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Delgadonut

  • *
  • 2 posts
Re: How to hide the Phone number block
« Reply #2 on: April 17, 2018, 05:51:55 AM »
Thanks for the way to hide. It's very useful to me. It helped me a lot.