How to remove ‘Required fields are followed by *’ from search form?

Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking How to remove ‘Required fields are followed by *’ from search form?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1167511
    Natasha Alton
    Participant

    Hi,

    I would like to remove the following from the availability search form block:
    Required fields are followed by *

    I have added the following into my theme’s function.php file, & it hasn’t worked?

    add_action( 'wp_head', 'remove_renderRequiredFieldsTip' );
    
    function remove_renderRequiredFieldsTip(){
    	remove_action( 'mphb_sc_search_render_form_top', array( '\MPHB\Views\GlobalView', 'renderRequiredFieldsTip' ), 40 );
    }

    Thanks for your time!

    #1169196
    Andre Flores
    Moderator

    Hello Matthew,

    The text you are referring to does not appear to be a function, you should simply add the following code under Appearance ->Customize ->Additional CSS in order to hide it:

    .mphb-booking-form .mphb-required-fields-tip {
    	display: none;
    }

    Regards,
    Andre

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.