Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How To Put Image Above Text In Footer

Solved

How To Put Image Above Text In Footer

TimMarner
Shopify Partner
9 0 1

Can anyone help me - I'm trying to get an image to stack on top of text in my footer, but there is no image with text block. 

 

This is what I want it to look like.....

 

Screenshot 2024-08-02 at 15.55.58.png

 

But this is what the footer currently looks like...

 

Screenshot 2024-08-02 at 16.25.25.png

How do I get the block on the bottom to move up and fill the blank space?

 

Thanks for any help 

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk
Accepted Solution (1)
vinh0225
Shopify Partner
128 26 25

This is an accepted solution.

Hi @TimMarner 

 

Please follow these steps:
1. From your Shopify admin, go to Online Store > Themes.
2. Find the theme that you want to edit, click the ... button to open the actions menu, and then click Edit code.
3. Open the file layout/theme.liquid and add the following snippet before </body>.

<script>
document.addEventListener('DOMContentLoaded', function() {
  if (window.matchMedia("(min-width: 1024px)").matches) {
    const footerItems = document.querySelectorAll('.footer-item');
    if (footerItems.length == 5) {
        const fifthFooterItem = footerItems[4];
        const firstFooterItem = footerItems[0];
        fifthFooterItem.parentNode.removeChild(fifthFooterItem);
        firstFooterItem.appendChild(fifthFooterItem);
    }
  }
});
</script>

4. Save the file and test.

That's it. Please let me know if you have any concern.

Regards,

Vinh

Was my response useful?  Click Like to let me know!
Was your query resolved? ✓ Mark it as a Resolved Solution
If you need custom Shopify changes, ️you can hire me.
Contact me at  ✉️ jalicorich@gmail.com.

View solution in original post

Replies 8 (8)

vinh0225
Shopify Partner
128 26 25

Hi @TimMarner 
Could you please share the store URL so that I can investigate further?

Regards,

Vinh

Was my response useful?  Click Like to let me know!
Was your query resolved? ✓ Mark it as a Resolved Solution
If you need custom Shopify changes, ️you can hire me.
Contact me at  ✉️ jalicorich@gmail.com.
TimMarner
Shopify Partner
9 0 1

https://freazesweets.myshopify.com/ 

Password: freaze

 

Thank you

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk
vinh0225
Shopify Partner
128 26 25

This is an accepted solution.

Hi @TimMarner 

 

Please follow these steps:
1. From your Shopify admin, go to Online Store > Themes.
2. Find the theme that you want to edit, click the ... button to open the actions menu, and then click Edit code.
3. Open the file layout/theme.liquid and add the following snippet before </body>.

<script>
document.addEventListener('DOMContentLoaded', function() {
  if (window.matchMedia("(min-width: 1024px)").matches) {
    const footerItems = document.querySelectorAll('.footer-item');
    if (footerItems.length == 5) {
        const fifthFooterItem = footerItems[4];
        const firstFooterItem = footerItems[0];
        fifthFooterItem.parentNode.removeChild(fifthFooterItem);
        firstFooterItem.appendChild(fifthFooterItem);
    }
  }
});
</script>

4. Save the file and test.

That's it. Please let me know if you have any concern.

Regards,

Vinh

Was my response useful?  Click Like to let me know!
Was your query resolved? ✓ Mark it as a Resolved Solution
If you need custom Shopify changes, ️you can hire me.
Contact me at  ✉️ jalicorich@gmail.com.
TimMarner
Shopify Partner
9 0 1

That's worked thanks so much!

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk
marinaevans
Shopify Partner
7 0 1

Hello, I have tried using the solution above and am still finding there's a LOT of vertical space between the logo image block & the text block I would like to appear directly beneath it. How do I reduce this space (in red in screenshot)? Thanks in advance!

marinaevans_0-1731085457929.png

 

Made4uo-Ribe
Shopify Partner
9085 2171 2680

Hi @TimMarner 

Would you mind to share this store URL? Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
TimMarner
Shopify Partner
9 0 1

Hi this is the link:

 

https://freazesweets.myshopify.com/ 

Password: freaze

 

Thank you

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk
Made4uo-Ribe
Shopify Partner
9085 2171 2680

Thanks for the info, check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

@media only screen and (min-width: 1023px) {
    .grid.grid--layout.grid--gap-xlarge.grid-4.grid-portable-2.grid-lap-1 {
        grid-row-gap: 0;
    }
    .footer-top > div > div:nth-child(1) {
        grid-row: 1 / span 1;
        grid-column: 1;
    }
    .footer-top > div > div:nth-child(5) {
        grid-row: 1 / span 2;
        grid-column: 1;
    }
    .footer-item__content.rte {
        padding-top: 50px;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1722867456423.png

This is only on the desktopn scree on the tablet and mobile, you didnt mention about it.

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.