There is a fb pixel still imbedded in the header of my shopify store. using the facebook pixel helper it says I still have a fb pixel in my header. I looked into it and saw it is in my {{ content_for_header }}.
I have tried .remove() and | remove: and I still have the fb pixel in the header of my theme.liquid
2
Answers
You can remove or replace strings like below
Replace
To remove
Otherwise you can’t really edit
{{ content_for_header }}
You can’t use
replace
orremove
filter oncontent_for_header
It’s not recommended to modify the
content_for_header
but, I will show you how to modify it.First, comment it
This will let you update the file with
theme watch
Second, Use capture for custom
content_for_header
Last, print your custom content for header