Hello,
I am trying to insert a search box (not just icon) inside header navigation area. https://imgur.com/Qw27o1K this is what I am trying to accomplish.
I am creating an element and selecting hook and then do proper settings.
<?php get_search_form(); ?>
I need to style the php code above.
if it was a shortcode I could use
<div class="classname">[shorcode]</div>
now that it’s a php code, can you please give me some idea in order to style it.
do you think the code below works?
echo '<div class="my_class">';
echo <?php get_search_form(); ?>;
echo '</div>';
my css and php knowledge is extremely limited. that’s why I need help.
Thanks in advance