Moving things in header to different places - Focal theme

Moving things in header to different places - Focal theme

galleriste
Pathfinder
102 1 16

I would like to move the logo to the left side and move the header hamburger to the right and adjust the tote bag icon slightly to the left to make room for the hamburger. Below are images of the change I'd like to make.

FullSizeRender_ef4cffb2-7018-4611-b459-a2aa7f74fccb.jpgIMG-6802.jpg

The website is https://568839.myshopify.com/

Replies 7 (7)

S18
Tourist
16 1 1

@galleriste Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->
under the <style> tag before the body ----->
if this code work please do not forget to like and mark it solution

@media screen and (max-width: 767px) {
a.header__logo-link {
    padding-right: 180px;
 }
}

S18
Tourist
16 1 1

@galleriste Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->
under the <style> tag before the body ----->
if this code work please do not forget to like and mark it solution

 

@media screen and (max-width: 767px) {
a.header__logo-link {
    padding-right: 180px;
 }
}

 

S18
Tourist
16 1 1

S18_0-1736612383236.png

@galleriste Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->
under the <style> tag before the body ----->
if this code work please do not forget to like and mark it solution

@media screen and (max-width: 767px) {
a.header__logo-link {

    padding-right: 180px !important;
 }
}

 

S18
Tourist
16 1 1
@media screen and (max-width: 767px) {
a.header__logo-link {
    padding-right: 180px !important;
 }
}

hey @galleriste dear follow these steps

Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->
under the <style> tag before the body ----->
if this code work please do not forget to like and mark it solution

webcraftio
Shopify Partner
52 0 0

It is a reference example every theme layout is different so make sure to understand it and if the option is show in theme customizer that would great for you 

 

you'll need to adjust the theme's code, specifically the header section in the theme.liquid or header.liquid file, and potentially some CSS in the theme's stylesheet.

Access Theme Code:

Go to your Shopify admin panel.
Navigate to Online Store > Themes.
Click Actions > Edit code for your active theme.
Locate the Header Code:

Look for header.liquid or a similar file in the Sections folder. If your theme doesn't have this file, check theme.liquid in the Layout folder.
Edit the Header Layout:

Locate the code for the logo, hamburger menu, and tote bag icon.
Typically, the logo is wrapped in a <div> or <a> tag, the hamburger menu in a <button> or <div> with a class like menu-icon, and the tote bag icon in a <div> or <a>.

Example structure before changes:

<div class="header">
<div class="hamburger-menu"></div>
<div class="logo"></div>
<div class="tote-bag"></div>
</div>

 

Adjust the structure to

<div class="header">
<div class="logo"></div>
<div class="tote-bag"></div>
<div class="hamburger-menu"></div>
</div>

Open the theme.css or style.css file in the Assets folder.
Add or modify CSS rules to position the elements.

.header {
display: flex;
align-items: center;
justify-content: space-between;
}

.logo {
order: 1; /* Moves the logo to the left */
}

.tote-bag {
order: 2; /* Positions tote bag in the center */
margin-right: 20px; /* Adjust spacing */
}

.hamburger-menu {
order: 3; /* Moves the hamburger menu to the right */
}

banned

dmwwebartisan
Shopify Partner
12364 2557 3741

@galleriste 

This is possible but there are some code changes. Please hire a Shopify expert or contact Shopify support.

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app

S18
Tourist
16 1 1
@media screen and (max-width: 767px) {
a.header__logo-link {
    padding-right: 180px;
 }
}

follow these step

@galleriste Go to Online Store-----Edit Code------Find theme.liquid file-----Add the following code in the bottom of the file above </body> tag

don't forget to like and mark it solution