Quantcast
Channel: Opinion: Shopify Community - Shopify Design
Viewing all articles
Browse latest Browse all 57838

Adding graphics to specific pages by Garrett Olson

$
0
0

Hi all, I'm kind of a newb with liquid, so forgive me if this has been answered many times before. I've spent about an hour googling and searching through the forums, and I can't find a concise solution.

My site is Dashing-Dog.com. I just added a new graphic to the 'theme.liquid' template file. The problem I'm having is that the graphic is showing on all/most of the site pages. So if you click on the "Collars" or "Leashes" navigation bar link, the graphic will show on these pages. I ONLY want the graphic on the home page.

I have the graphic wrapped in a '{% if page.url == http://dashing-dog.myshopify.com/ %},' but even with that IF statement, it still shows on the other pages.

How can I get this graphic to only show on the home page?

Much appreciated,

Garrett


Viewing all articles
Browse latest Browse all 57838

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>