Create a widget on header

Hello,
How to replace the slide of the header of the home page with a form?

Dear Jocelyn,

Thank you for asking. Please refer to this thread. That might be what you are looking for.

Regards,
Kharis

Dear Kharis,
How to install this manipulation manually without using a plugin. I’m afraid to slow the system to adding a lot of plugin.

Dear Jocelyn,

I would like to apologize in advance for the delayed respond.

You can insert your custom CSS and jQuery code using the following functions:


add_action('wp_head', 'sydney_child_head_script', 99);
function sydney_child_head_script(){
	?>
	<style>
		/* CSS goes here */
	</style>
	<?php
}

add_action('wp_footer', 'sydney_child_footer_script', 99);
function sydney_child_footer_script(){
	?>
	<script>
		/* JS code goes here */
	</script>
	<?php
}

You must pass it in the child theme. So those code won’t be overridden once the theme gets updated in the future.

Regards,
Kharis

Okay Kharis