Add Text or Banner on Top of Specific Pages or Products, Header and Footer are Hidden from Specific

How to Add Text or Banner on Top of Specific Pages or Products, Header and Footer are Hidden from Specific Pages, Products or Collection?

@hamzaabbas You can use of metafield to achieve this.

Can you please let me know how I can do?

Install Metafield guru app > create metafield for the products, collections, pages as per your requirement for example you want to show the text on the xyz collection than go to the specific xyz collection page and then on the top right click on More Action dropdown button and then click on Edit Metafield and click on create metafield and enter the Key name and data as you see in the below screenshot -

After entering data click on save and then click on the Action button which is showing in the red box right side and then click on Copy Liquid Code and now you can use this shortcode in your page template wherever you want to show like want to show on the collection then you have to put this code in your collection-template.liquid file or collection.liquid section file above the data starts of collections.

And that’s it!

Where can I put the Liquid Code? I want to show on the header on specific pages.

Exactly, I want like that. Is it possible to put an image banner?

Yes, How can I do it?

Can you please guide me then I want to do it by self?