LOGO MENU AND SEARCH SAME ROW EMPIRE THEME

How can i center navigation menu in between logo and search bar in empire theme on the same row?

Hello @Georgeaga

would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.

https://themes.shopify.com/themes/empire/styles/supply/preview?surface_inter_position=3&surface_intra_position=7&surface_type=all

THIS theme.

i need navigation menu in between logo and search bar and search bar smaller.

you have to change the structure of the HTML.

Hello @Georgeaga
You have to manage the html structure. You need to edit the header file.

Follow the below steps
Go to Online store
Click on edit code
Search for header.liquid file
'Search for the text ‘site-navigation-wrapper’ and copy the complete code inside this div
Now add the code after ‘site-header-logo’ div

It should look something like this

I hope this helps!
Thanks.

header.liquid file?

or theme.css file?

there is no header.liquid file.
there is a

search.head.liquid

also a

static-header.liquid

Search the ‘site-navigation-wrapper’ text in static-header.liquid

Almost there. It put it after the search bar and login button.

here is a screen shot of how i copy and pasted the code. and how it looks.

Would it be possible for you to complete the original static-header file code here. I will check and arrange the html

ill copy and pase the original static here.

but i mightve gotten it to work.

but now it looks like this

ok Can you share the preview url ?

{% assign has_box_shadow = false %}
{% if settings.color_background == settings.color_header_background %}
{% assign has_box_shadow = true %}
{% endif %}

{% assign logo_height = section.settings.logo_height | default: 100 %}
{% assign logo_width = section.settings.logo_width | default: 200 %}
{% assign logo_size = logo_width | prepend: ‘x’ %}

{% style %}
.site-logo {
max-width: {{ logo_width }}px;
}

.site-logo-image {
max-height: {{ logo_height }}px;
}
{% endstyle %}

{{ 'general.accessibility.menu' | t }}

{% unless section.settings.show_mobile_search_bar %}
{% capture search_button %}

{% render 'icon-search' %} {{- 'general.accessibility.search' | t -}}
{% endcapture %}

{% if section.settings.enable_live_search %}
<button
class=“site-header-mobile-search-button”
data-mobile-search-button

{{ search_button }}

{% else %}
<a
class=“site-header-mobile-search-button”
href=“{{ routes.search_url }}”

{{ search_button }}

{% endif %}
{% endunless %}

{%
render ‘live-search-form’,
quick_links: linklists[section.settings.quick_links],
enable_images: section.settings.enable_live_search_images,
%}

{% if section.settings.small_promo_text != blank or section.settings.small_promo_heading != blank %}
{% if section.settings.small_promo_link != blank %}
<a
class=“small-promo-content–link”
href=“{{ section.settings.small_promo_link }}”

{% endif %}

{% if section.settings.small_promo_icon != 'none' or section.settings.image %} {% if section.settings.image == blank %} {% render 'icon-library', id: section.settings.small_promo_icon %} {% else %} {% render 'rimg', class: 'small-promo-custom-icon', img: section.settings.image, size: '60x', focal_point: section.settings.image.presentation.focal_point, %} {% endif %} {% endif %}
{% if section.settings.small_promo_heading != blank %} {{ section.settings.small_promo_heading | escape }} {% endif %}

{% if section.settings.small_promo_text_mobile != blank %}

{{ section.settings.small_promo_text_mobile }}
{% endif %}

{% if section.settings.small_promo_text != blank %}

{{ section.settings.small_promo_text }}
{% endif %}
{% if section.settings.small_promo_link != blank %} {% endif %} {% endif %}
{% render 'navmenu', menu: section.settings.menu, blocks: section.blocks, %}

{% if section.settings.secondary_menu != blank %}
{%
render ‘navlist’,
menu_list: linklists[section.settings.secondary_menu].links,
depth: 1,
max_depth: 1,
aria_expanded: true,
navmenu_classes: ‘site-navigation__secondary-menu’,
%}
{% endif %}

{%
render ‘site-mobile-nav’,
blocks: section.blocks,
%}

{% schema %}
{
“name”: “t:sections.header.name”,
“class”: “site-header-wrapper”,
“settings”: [
{
“type”: “checkbox”,
“id”: “sticky_header”,
“label”: “t:sections.header.sticky_header.label”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “full_width_header”,
“label”: “t:sections.header.full_width_header.label”,
“default”: true
},
{
“type”: “image_picker”,
“id”: “logo”,
“label”: “t:sections.header.logo.label”,
“info”: “t:sections.header.logo.info”
},
{
“type”: “range”,
“id”: “logo_height”,
“label”: “t:sections.header.logo_height.label”,
“min”: 40,
“max”: 100,
“step”: 1,
“unit”: “px”,
“default”: 40
},
{
“type”: “range”,
“id”: “logo_width”,
“label”: “t:sections.header.logo_width.label”,
“min”: 150,
“max”: 250,
“step”: 1,
“unit”: “px”,
“default”: 150,
“info”: “t:sections.header.logo_width.info”
},
{
“type”: “header”,
“content”: “t:sections.header.header_1.content”
},
{
“type”: “select”,
“id”: “filter_search_by”,
“label”: “t:sections.header.filter_search_by.label”,
“info”: “t:sections.header.filter_search_by.info”,
“options”: [
{
“value”: “disabled”,
“label”: “t:sections.header.filter_search_by.option_1”
},
{
“value”: “product_type”,
“label”: “t:sections.header.filter_search_by.option_2”
},
{
“value”: “tag”,
“label”: “t:sections.header.filter_search_by.option_3”
}
],
“default”: “product_type”
},
{
“type”: “checkbox”,
“id”: “enable_live_search”,
“label”: “t:sections.header.enable_live_search.label”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_mobile_search_bar”,
“label”: “t:sections.header.show_mobile_search_bar.label”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “enable_live_search_images”,
“label”: “t:sections.header.enable_live_search_images.label”,
“default”: true
},
{
“type”: “link_list”,
“id”: “quick_links”,
“label”: “t:sections.header.quick_links.label”,
“info”: “t:sections.header.quick_links.info”
},
{
“type”: “header”,
“content”: “t:sections.header.header_2.content”
},
{
“type”: “link_list”,
“id”: “menu”,
“label”: “t:sections.header.menu.label”,
“default”: “main-menu”
},
{
“type”: “link_list”,
“id”: “secondary_menu”,
“label”: “t:sections.header.secondary_menu.label”
},
{
“type”: “header”,
“content”: “t:sections.header.header_3.content”
},
{
“type”: “text”,
“id”: “small_promo_heading”,
“label”: “t:sections.header.small_promo_heading.label”
},
{
“type”: “richtext”,
“id”: “small_promo_text”,
“label”: “t:sections.header.small_promo_text.label”
},
{
“type”: “richtext”,
“id”: “small_promo_text_mobile”,
“label”: “t:sections.header.small_promo_text_mobile.label”,
“info”: “t:sections.header.small_promo_text_mobile.info”
},
{
“type”: “url”,
“id”: “small_promo_link”,
“label”: “t:sections.header.small_promo_link.label”
},
{
“type”: “select”,
“id”: “small_promo_icon”,
“label”: “t:sections.header.small_promo_icon.label”,
“options”: [
{
“value”: “none”,
“label”: “t:sections.header.small_promo_icon.option_1”
},
{
“value”: “icon-award-trophy”,
“label”: “t:sections.header.small_promo_icon.option_2”
},
{
“value”: “icon-car”,
“label”: “t:sections.header.small_promo_icon.option_3”
},
{
“value”: “icon-cell-phone”,
“label”: “t:sections.header.small_promo_icon.option_4”
},
{
“value”: “icon-chat”,
“label”: “t:sections.header.small_promo_icon.option_5”
},
{
“value”: “icon-chat-alternate”,
“label”: “t:sections.header.small_promo_icon.option_6”
},
{
“value”: “icon-credit-card”,
“label”: “t:sections.header.small_promo_icon.option_7”
},
{
“value”: “icon-delivery”,
“label”: “t:sections.header.small_promo_icon.option_8”
},
{
“value”: “icon-delivery-cart”,
“label”: “t:sections.header.small_promo_icon.option_9”
},
{
“value”: “icon-delivery-door”,
“label”: “t:sections.header.small_promo_icon.option_10”
},
{
“value”: “icon-delivery-package”,
“label”: “t:sections.header.small_promo_icon.option_11”
},
{
“value”: “icon-email”,
“label”: “t:sections.header.small_promo_icon.option_12”
},
{
“value”: “icon-envelope”,
“label”: “t:sections.header.small_promo_icon.option_13”
},
{
“value”: “icon-gift-card”,
“label”: “t:sections.header.small_promo_icon.option_14”
},
{
“value”: “icon-heart”,
“label”: “t:sections.header.small_promo_icon.option_15”
},
{
“value”: “icon-information”,
“label”: “t:sections.header.small_promo_icon.option_16”
},
{
“value”: “icon-label-tag”,
“label”: “t:sections.header.small_promo_icon.option_17”
},
{
“value”: “icon-lock”,
“label”: “t:sections.header.small_promo_icon.option_18”
},
{
“value”: “icon-number-14”,
“label”: “t:sections.header.small_promo_icon.option_19”
},
{
“value”: “icon-number-24”,
“label”: “t:sections.header.small_promo_icon.option_20”
},
{
“value”: “icon-number-30”,
“label”: “t:sections.header.small_promo_icon.option_21”
},
{
“value”: “icon-people”,
“label”: “t:sections.header.small_promo_icon.option_22”
},
{
“value”: “icon-pin”,
“label”: “t:sections.header.small_promo_icon.option_23”
},
{
“value”: “icon-question-mark”,
“label”: “t:sections.header.small_promo_icon.option_24”
},
{
“value”: “icon-rating-five-star”,
“label”: “t:sections.header.small_promo_icon.option_25”
},
{
“value”: “icon-rating-star”,
“label”: “t:sections.header.small_promo_icon.option_26”
},
{
“value”: “icon-smile”,
“label”: “t:sections.header.small_promo_icon.option_27”
},
{
“value”: “icon-store”,
“label”: “t:sections.header.small_promo_icon.option_28”
},
{
“value”: “icon-tape-measure”,
“label”: “t:sections.header.small_promo_icon.option_29”
},
{
“value”: “icon-thumbs-up”,
“label”: “t:sections.header.small_promo_icon.option_30”
},
{
“value”: “icon-transfer”,
“label”: “t:sections.header.small_promo_icon.option_31”
}
],
“default”: “none”
},
{
“type”: “image_picker”,
“id”: “image”,
“label”: “t:sections.header.image.label”,
“info”: “t:sections.header.image.info”
},
{
“type”: “header”,
“content”: “t:sections.header.header_4.content”
},
{
“type”: “select”,
“id”: “cart_icon”,
“label”: “t:sections.header.cart_icon.label”,
“options”: [
{
“value”: “icon-bag”,
“label”: “t:sections.header.cart_icon.option_1”
},
{
“value”: “icon-cart”,
“label”: “t:sections.header.cart_icon.option_2”
}
],
“default”: “icon-cart”
}
],
“blocks”: [
{
“type”: “meganav_images”,
“name”: “t:sections.header.blocks.mega_menu.name”,
“limit”: 5,
“settings”: [
{
“type”: “text”,
“id”: “meganav_trigger”,
“label”: “t:sections.header.blocks.mega_menu.meganav_trigger.label”,
“info”: “t:sections.header.blocks.mega_menu.meganav_trigger.info”
},
{
“type”: “header”,
“content”: “t:sections.header.blocks.mega_menu.header_1.content”
},
{
“type”: “image_picker”,
“id”: “image_1”,
“label”: “t:sections.header.blocks.mega_menu.image_1.label”
},
{
“type”: “text”,
“id”: “text_1”,
“label”: “t:sections.header.blocks.mega_menu.text_1.label”
},
{
“type”: “url”,
“id”: “link_1”,
“label”: “t:sections.header.blocks.mega_menu.link_1.label”
},
{
“type”: “select”,
“id”: “position_1”,
“label”: “t:sections.header.blocks.mega_menu.position_1.label”,
“options”: [
{
“value”: “first”,
“label”: “t:sections.header.blocks.mega_menu.position_1.option_1”
},
{
“value”: “last”,
“label”: “t:sections.header.blocks.mega_menu.position_1.option_2”
}
],
“default”: “last”
},
{
“type”: “select”,
“id”: “size_1”,
“label”: “t:sections.header.blocks.mega_menu.size_1.label”,
“options”: [
{
“value”: “small”,
“label”: “t:sections.header.blocks.mega_menu.size_1.option_1”
},
{
“value”: “medium”,
“label”: “t:sections.header.blocks.mega_menu.size_1.option_2”
},
{
“value”: “large”,
“label”: “t:sections.header.blocks.mega_menu.size_1.option_3”
}
],
“default”: “medium”
},
{
“type”: “header”,
“content”: “t:sections.header.blocks.mega_menu.header_2.content”
},
{
“type”: “image_picker”,
“id”: “image_2”,
“label”: “t:sections.header.blocks.mega_menu.image_2.label”
},
{
“type”: “text”,
“id”: “text_2”,
“label”: “t:sections.header.blocks.mega_menu.text_2.label”
},
{
“type”: “url”,
“id”: “link_2”,
“label”: “t:sections.header.blocks.mega_menu.link_2.label”
},
{
“type”: “select”,
“id”: “position_2”,
“label”: “t:sections.header.blocks.mega_menu.position_2.label”,
“options”: [
{
“value”: “first”,
“label”: “t:sections.header.blocks.mega_menu.position_2.option_1”
},
{
“value”: “last”,
“label”: “t:sections.header.blocks.mega_menu.position_2.option_2”
}
],
“default”: “last”
},
{
“type”: “select”,
“id”: “size_2”,
“label”: “t:sections.header.blocks.mega_menu.size_2.label”,
“options”: [
{
“value”: “small”,
“label”: “t:sections.header.blocks.mega_menu.size_2.option_1”
},
{
“value”: “medium”,
“label”: “t:sections.header.blocks.mega_menu.size_2.option_2”
},
{
“value”: “large”,
“label”: “t:sections.header.blocks.mega_menu.size_2.option_3”
}
],
“default”: “medium”
}
]
},
{
“type”: “meganav_sidenav”,
“name”: “t:sections.header.blocks.mega_menu_with_sidebar.name”,
“limit”: 5,
“settings”: [
{
“type”: “text”,
“id”: “meganav_trigger”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.meganav_trigger.label”,
“info”: “t:sections.header.blocks.mega_menu_with_sidebar.meganav_trigger.info”
},
{
“type”: “radio”,
“id”: “submenu_layout”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.submenu_layout.label”,
“options”: [
{
“value”: “text_columns”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.submenu_layout.option_1”
},
{
“value”: “product_images”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.submenu_layout.option_2”
},
{
“value”: “collection_images”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.submenu_layout.option_3”
}
],
“default”: “text_columns”
},
{
“type”: “select”,
“id”: “image_aspect_ratio”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.image_aspect_ratio.label”,
“options”: [
{
“value”: “natural”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.image_aspect_ratio.option_1”
},
{
“value”: “short”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.image_aspect_ratio.option_2”
},
{
“value”: “square”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.image_aspect_ratio.option_3”
},
{
“value”: “tall”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.image_aspect_ratio.option_4”
}
],
“default”: “natural”
},
{
“type”: “checkbox”,
“id”: “image_crop”,
“label”: “t:sections.header.blocks.mega_menu_with_sidebar.image_crop.label”,
“info”: “t:sections.header.blocks.mega_menu_with_sidebar.image_crop.info”,
“default”: true
}
]
},
{
“type”: “multi_column_menu”,
“name”: “t:sections.header.blocks.multi-column_single_menu.name”,
“settings”: [
{
“type”: “text”,
“id”: “menu_trigger”,
“label”: “t:sections.header.blocks.multi-column_single_menu.menu_trigger.label”,
“info”: “t:sections.header.blocks.multi-column_single_menu.menu_trigger.info”
}
]
}
]
}

{% endschema %}

https://www.dropbox.com/scl/fi/0a4v646ml8we93qoj7jkp/static-header.docx?rlkey=lgcy2szpts3p0mjsplu90gd0r&st=mseu5fg0&dl=0

here is link to download the code.

here is the formated code

{% assign has_box_shadow = false %}
{% if settings.color_background == settings.color_header_background %}
{% assign has_box_shadow = true %}
{% endif %}

{% assign logo_height = section.settings.logo_height | default: 100 %}
{% assign logo_width = section.settings.logo_width | default: 200 %}
{% assign logo_size = logo_width | prepend: ‘x’ %}

{% style %}
.site-logo {
max-width: {{ logo_width }}px;
}

.site-logo-image {
max-height: {{ logo_height }}px;
}
{% endstyle %}

{{ 'general.accessibility.menu' | t }}

{% unless section.settings.show_mobile_search_bar %}
{% capture search_button %}

{% render 'icon-search' %} {{- 'general.accessibility.search' | t -}}
{% endcapture %}

{% if section.settings.enable_live_search %}
<button
class=“site-header-mobile-search-button”
data-mobile-search-button

{{ search_button }}

{% else %}
<a
class=“site-header-mobile-search-button”
href=“{{ routes.search_url }}”

{{ search_button }}

{% endif %}
{% endunless %}

{% render 'navmenu', menu: section.settings.menu, blocks: section.blocks, %}

{% if section.settings.secondary_menu != blank %}
{%
render ‘navlist’,
menu_list: linklists[section.settings.secondary_menu].links,
depth: 1,
max_depth: 1,
aria_expanded: true,
navmenu_classes: ‘site-navigation__secondary-menu’,
%}
{% endif %}

{%
render ‘live-search-form’,
quick_links: linklists[section.settings.quick_links],
enable_images: section.settings.enable_live_search_images,
%}

{% if section.settings.small_promo_text != blank or section.settings.small_promo_heading != blank %}
{% if section.settings.small_promo_link != blank %}
<a
class=“small-promo-content–link”
href=“{{ section.settings.small_promo_link }}”

{% endif %}

{% if section.settings.small_promo_icon != 'none' or section.settings.image %} {% if section.settings.image == blank %} {% render 'icon-library', id: section.settings.small_promo_icon %} {% else %} {% render 'rimg', class: 'small-promo-custom-icon', img: section.settings.image, size: '60x', focal_point: section.settings.image.presentation.focal_point, %} {% endif %} {% endif %}
{% if section.settings.small_promo_heading != blank %} {{ section.settings.small_promo_heading | escape }} {% endif %}

{% if section.settings.small_promo_text_mobile != blank %}

{{ section.settings.small_promo_text_mobile }}
{% endif %}

{% if section.settings.small_promo_text != blank %}

{{ section.settings.small_promo_text }}
{% endif %}
{% if section.settings.small_promo_link != blank %} {% endif %} {% endif %}

{%
render ‘site-mobile-nav’,
blocks: section.blocks,
%}

Also i want the store preview url so that i can check the frontend view