We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

My account wrapped in two lines

Solved

My account wrapped in two lines

hawkridgefc
Excursionist
31 1 7

I am preparing to publish my site, and over several hours I tried to unwrap My Account but failed. Currently after a user logs in, the user icon will be changed to text "My Account", but the two letters were in two lines (see the picture). How can I make it stay in one line and align with the cart? See the picture to understand the problem.

 

Thank you.

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

This is an accepted solution.

Hi @hawkridgefc 

Please add this code to theme.liquid file, after <head> in Online Store > Themes > EDit code 

{% if customer %}
<style>
.header__icon--account { width: max-content !important; padding: 8px; }
</style>
{% endif %}

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 10 (10)

hawkridgefc
Excursionist
31 1 7

Here is the screenshot. CaptureMA.JPGCaptureMA.JPG

PaulNewton
Shopify Partner
8031 688 1649

Hi @hawkridgefc 👋 Always remember other people.

All people do not have the same specific setup, we cannot see what you see, access what you have access too, or just know what you know.

You must communicate context.

 

Provide inspectable example URLS, that you confirm are publicly accessible or provide a storefront password.

https://community.shopify.com/c/blog/how-to-get-support-from-the-community/ba-p/1399408 

 

Failure to keep this forefront in mind when seeking free business help DRASTICALLY reduces the chances of getting anything resolved.

 

*clarified urls

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


hawkridgefc
Excursionist
31 1 7

Ok. Here is the inspect results <a href="/account" class="header__icon header__icon--account link">My Account</a>. After a user logs in, the user icon changed to "My Account", but the two words appear in two lines. How can I unwrap them so that they fit into one line? My website is in preparation at the moment.

PaulNewton
Shopify Partner
8031 688 1649

A URL, that html is meaningless without the surrounding context of styles,javascript and other elements on a website.

Good luck.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


hawkridgefc
Excursionist
31 1 7
That URL is useful. Another person reached out to me and guess what, I have
already solved the problem!

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

This is an accepted solution.

Hi @hawkridgefc 

Please add this code to theme.liquid file, after <head> in Online Store > Themes > EDit code 

{% if customer %}
<style>
.header__icon--account { width: max-content !important; padding: 8px; }
</style>
{% endif %}

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

hawkridgefc
Excursionist
31 1 7
It works. Thanks so much!
hawkridgefc
Excursionist
31 1 7

A follow up question. On a mobile device, the My Account link is too close to the shopping cart on the right side. Can you show me how to move My Account further to the left on a mobile device?  I moved it to the left on desktop, but it doesn't change on a mobile device.

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

Could you share your store link so I can check?

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

hawkridgefc
Excursionist
31 1 7
I am still working on the site, and it's not published yet. It's not a huge
deal, and I may let you know when I publish it.