how do i add text in the corner of my store page along the announcement bar?

how do i add text in the corner of my store page along the announcement bar?

ompee1978
Visitor
2 0 0

im trying to add an email address on the right top corner along the announcement bar https://unsula.com/

 

can anyone help?

Replies 3 (3)

ShakhawatArafat
Shopify Partner
57 12 20

DaisyVo
Shopify Partner
3775 405 495

Hi @ompee1978 

 

do you have any illustrations

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

CodingFifty
Shopify Partner
595 93 115

Hi @ompee1978,

 

1. Liquid Code (announcement-bar.liquid)

To add the email address under the .announcement-bar__message class in the announcement-bar.liquid file:

<div class="announcement-bar__message">
   {{ settings.announcement_text }}
   <span class="announcement-email">
      <a href="mailto:your@email.com">your@email.com</a>
   </span>
</div>

2. CSS Code (base.css/theme.css)

If the email address is not showing in the correct position, add the following CSS code in base.css or theme.css:

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

3. Steps:

  1. Log in to your Shopify Admin Panel.
  2. Go to Online Store > Themes > Actions > Edit Code.
  3. Open the announcement-bar.liquid file under the Snippets folder and add the Liquid code.
  4. Open the base.css or theme.css file under the Assets folder and add the CSS code.
  5. Save your changes and refresh your website to check if the email appears correctly.
Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com