Dawn theme | Any suggestion or way on how to hide Currency switcher on Certain pages?

Hi Shopify community!

Any suggestions on how to hide Currency selector on certain pages only..

I’m thinking of display:none but not sure how I would apply this logic

ex. If its possible , we would like this currency selector to only appear on Checkout or homepage or certain product (e..g.https://fertile-ground.co/products/it-starts-with-knowledge )

Store credentials:

https://fertile-ground.co/

pass: seogle_1

Thanks in Advance!

Hello, @parallelism23
Please Add This CSS by going to the online store > edit theme > assets > base.css

.pick_currency.mldesk {
	display: none !important;
}

Like This

Or go to the online store > edit theme > search header. liquid > pick_currency mldesk search this CSS and remove complete code

Hi @parallelism23

Thank you for reaching out to the shopify community.

IN order to hide the currency selector, you first have to go to your theme editor and search for the header.liquid file in Sections folder. Search for the div with class pick_currency. Now you have to apply a condition before that div to only appear on specific page (like homepage, checkout page).

For example:-

{% if request.page_type == "index" %} 
   ....   //currency code here
{% end if%}

Now currency switcher will only be visible on homepage.

Please give it a try and let me know if this was helpful.

Thanks

Thanks for your reply! but what this does it hides the currency for all pages.. we want to be able to make it show on the cart page atleast.

Hi @Harsita ! Im currently unable to find the div for the currency switcher. This might be because this is a third party application. Will there be any other way?

Thank you!