How can I hide a button only on specific pages in Dawn?

Solved

How can I hide a button only on specific pages in Dawn?

harukajmickey
Shopify Partner
119 0 9

Hi all,

 

I am using dawn.

How do I make this button not shown only on hobot-japan.com/pages/** ?

The pages are all such as contact and landing pages. 

Thank you in advance!

 

URL

https://w4rbnpbf8sknalu6-25976733762.shopifypreview.com

 

スクリーンショット 2023-03-29 14.25.18.png

 

Accepted Solution (1)

Moeed
Shopify Partner
6533 1774 2146

This is an accepted solution.

Hey @harukajmickey 

Follow these steps:

 

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body>

 

{%  if template contains 'page' %}
<style>
.line-fixed-button {
    display: none !important;
}
</style>
{%  endif %}

 

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 3 (3)

Moeed
Shopify Partner
6533 1774 2146

This is an accepted solution.

Hey @harukajmickey 

Follow these steps:

 

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body>

 

{%  if template contains 'page' %}
<style>
.line-fixed-button {
    display: none !important;
}
</style>
{%  endif %}

 

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


harukajmickey
Shopify Partner
119 0 9

Thank you Moeed. It worked!

oneworldproject
Visitor
1 0 0

I have the same problem and have tried this fix and it hasn`t worked