Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!

How can I remove a URL from theme.liquid content_for_header?

How can I remove a URL from theme.liquid content_for_header?

uzzam_altaf
Shopify Partner
3 0 0

How can I remove a url from shopify content_for_header in theme.liquid

 

I tried using capture but it did not work.

Is there any other way or is there a problem with capture.

Replies 2 (2)

Jason
Shopify Partner
11207 226 2320

Can I see the code? It's still a very weird thing to try and remove in general as whatever benefits you're hoping to see often don't outweigh losing what that drop loads.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
uzzam_altaf
Shopify Partner
3 0 0

I got it working but now I don't know how to remove multiple url's from this.

 

{% capture content_for_header %}
{{ content_for_header | replace: 'https:\/\/wheelieoptin.mpireapps.io\/script?shop=myshopify.com', '""' }}
{% endcapture %}

 

How to remove/replace multiple urls.