is there a way to place the header search form into the main navigation bar - just to the left of the cart $$ area?
placing the searchfor. by the: "Cart - $11.11" in the navigation bar
4 posts from 2 voices-
Posted 3 months ago #
-
Hi nikicampbell,
Try to add open wp-content/themes/replete/header.php and find this code:
if(!avia_woocommerce_enabled() || avia_get_option('header_search') != 'product') { get_search_form(); } else { get_product_search_form(); }remove this. Next, find this code:
<?php echo "<div class='main_menu' data-selectname='".__('Select a page','avia_framework')."'>"; $args = array('theme_location'=>'avia', 'fallback_cb' => 'avia_fallback_menu', 'walker' => new avia_responsive_mega_menu()); wp_nav_menu($args);Below it, add this:
if(!avia_woocommerce_enabled() || avia_get_option('header_search') != 'product') { echo '<div class="custom_search">'; get_search_form(); echo '</div>'; } else { echo '<div class="custom_search">'; get_product_search_form(); echo '</div>'; }Then, add this code in your Quick CSS or at the bottom of custom.css:
.custom_search { position: absolute; right: 50px; top: -9px; }Hope this helps
Regards,
IsmaelPosted 3 months ago # -
Thanks! Worked perfectly.
Posted 3 months ago # -
Hey,
Glad it worked.
Regards,
IsmaelPosted 3 months ago #
Topic Closed
This topic has been closed to new replies.














