Make Minimal Theme Homepage H1 Tag Different than Store Name

bgmemories
New Member
9 0 0

Hello - 

Hoping somebody can assist us on creating a unique Store Name and homepage H1 tag using Minimal Theme.

Currently, the store name is populating the homepage H1 tag as an alt text to the BG Memories logo atop the homepage. I don't mind the H1 = the logo, but I do want it to be unique compared to the Store Name.

Store Name: BG Memories Apparel | BGSU T-shirts

H1 Homepage: Shop BGSU Falcons Apparel

Anybody have any insights? I'm guessing an edit will need to be made in liquid.theme or something.

I'm slightly below average in coding edits, but have made updates to liquid before and above average in SEO optimization.

Thank you,

BG Memories 

0 Likes
Ninthony
Shopify Partner
2144 316 849

Open your header.liquid file in your Sections folder and scroll to around line 185:

Ninthony_0-1628193601700.png

Just delete {{ shop.name | escape }} and replace it with thatever you want.

If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
bgmemories
New Member
9 0 0

Thanks for the quick reply Ninthony

So, when I strip out {{ shop.name | escape }} just be sure to keep new H1 tag within the quotations, correct?

0 Likes
bgmemories
New Member
9 0 0

Actually upon further review, Minimal Theme does NOT have a section subfolder of header.liquid

0 Likes
bgmemories
New Member
9 0 0

i did find this code snipper in theme.liquid

<div id="transparency" class="wrapper">
<div class="row">
<!-- Begin right navigation -->
{% if settings.navigation_alignment == "right" %}
<div class="row" id="header">
<div class="span12 border-bottom">
<div class="span4 inner-left logo-wrapper">
<div class="logo">
{% if settings.use_logo %}
<a href="/"><img src="{{ 'logo.png' | asset_url }}" alt="{{ shop.name }}" /></a>
{% if template == 'index' %}
<h1 style="display:none"><a href="/">{{ shop.name }}</a></h1>
{% endif %}
{% else %}
<h1><a href="/">{{ shop.name }}</a></h1>
{% endif %}
</div>

0 Likes
Ninthony
Shopify Partner
2144 316 849

Weird, I just installed Minimal and that's where I had to go. Anyway, same idea, just change what is in the quotes in the alt attribute

 

<a href="/"><img src="{{ 'logo.png' | asset_url }}" alt="whatever you want" /></a>

 

If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
bgmemories
New Member
9 0 0

Thanks again for the time. It didn't work just replacing the one

What about these other two fields where "store name" is bracketed

Does what I want go within the brackets or delete the brackets and just add between carrots?

 

<h1 style="display:none"><a href="/">{{ shop.name }}</a></h1>
{% endif %}
{% else %}
<h1><a href="/">{{ shop.name }}</a></h1>

Update: i tested updating all three fields, still pulling in store name as H1

0 Likes
g33kgirl
Shopify Partner
321 95 110

@bgmemories Minimal theme does have a header.liquid. It's under Sections

Screenshot 2021-08-06 at 1.47.02 am.png

You need to go to line 185 as suggested by @Ninthony and also line 228:

Screenshot 2021-08-06 at 1.45.50 am.png

If you found my answer helpful, please LIKE and ACCEPT.
buymeacoffee.com/g33kgirl ☕
If you're not comfortable with code, please modify code files at your own risk.
0 Likes
bgmemories
New Member
9 0 0

Thanks so much for helping, too, but my section folder is empty on Minimal 

Thoughts?

shop-minimal-sections-blank.jpg

0 Likes
Ninthony
Shopify Partner
2144 316 849

That's certainly odd. When did you install Minimal? This seems to be an unusual case. I can request access to your themes and take a look for you if you'd like. I'll just need a store url so I can request access.

If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D