Hi there, I would like to remove the search section as shown in the image below from some pages. For example, when the user is in the process of creating an ad there is no need for this search section to be displayed. Thanks, Mike
Hello, Paste this code in Custom CSS Appearance > Theme Option > Styling Option > Custom CSS Code: .search_wrapper { display: none;} Thanks & Regards Nitesh Raghuwanshi
Hi Nitesh, I'd like to remove the search box from select pages, not from all pages. How can I achieve that? I guess, another question would be, how would I enforce the css style per page? Thanks, Mike
Hello, Through page id selector you can apply css style only on the specific pages. Paste the following code in your Custom CSS (Appearance -> Theme Options -> Styling Options -> Custom CSS) Code: .page-template-template_ad_new-php .search_wrapper { display: none; } This will remove the search bar from the post free add page.
Hello careykidd ! PHP: function login_form_style(){ echo "<style>.search_wrapper{display:none;}</style>";}var_dump($_GET);if(isset($_GET['action']) && $_GET['action']=='login'){ add_action('wp_head','login_form_style');} Please use above code in functions.php http://screenpresso.com/=q5EAe Thanks & Regards Pramod
you can also make a copy of the header.php, rename it like header-noSearch.php, remove the search form from the file header-noSearch.php, and then on a particular page, call the header this way. get_header('noSearch');