Blog

Change Search Form HTML – WordPress

I will show you 2 easy ways to change the HTML of wordpress search form.

End result will look like this –

First method

First method is using a hook on get_search_form filter.

Open up your functions.php and add the following code

add_filter('get_search_form', 'nexmag_filter_search_form');
function nexmag_filter_search_form( $form ) {
	return '
	<form role="search" method="get" class="search-form" action="">
		<label>
			<span class="screen-reader-text">Search for:</span>
			<input type="search" class="form-control search-field" placeholder="Search …" value="" name="s">
		</label>
		<button class="btn btn-primary search-submit align-top">
			<i class="fas fa-search "></i>	
		</button>
	</form> ';	
}
Continue reading “Change Search Form HTML – WordPress”

Learn Python – Lesson 1

Python is an object oriented high level programming language. It is primarily used for developing web applications and programs involving complex mathematical calculations. It is also used for systems scripting.

Python is highly portable and Python programs can be developed under any Operating System. But this series is for windows users only – Windows 7 and above.

Continue reading “Learn Python – Lesson 1”