How can I quickly locate a page layout in a Liquid file
Hi @GYY-y ,
I’m 100% sure what you’re asking. Would you be able to give an example or elaborate a little more, please?
I’m wondering if you mean, how do to find out what liquid file is being used to render a specific page? If so you’d need to check which files are part of your theme. If you can provide an example it would be greatly appreciated to helping torubleshoot this further for you!
For example, IF I want to change the breadcrumb navigation on each page, which liquid file should I go to
Gotcha, thanks for elaborating!
This is something which would depend on each theme. To access the theme code you’d take the following steps:
Store Admin > Online Store > Actions > Edit Code
But once there, there is a lot of code and that’s where it would be different for each theme. You may need to ask the theme developer - or look for snippets that describe the component you want to find, eg: for breadcrumbs you could find it in a snippet called site-nav.liquid
but there’s no standard approach for all themes, and this is why it depends on what theme it is. Something you could do is use Google’s inspect tool to find a container name and then search for that name within the code of the theme.
Thank you for taking the time out of your busy schedule to help me solve the problem. Thank you very much. I am also a recent shopify developer. I have many questions and I want to ask. Anyway, I would like to thank you for helping me solve the problem.
Hi @GYY-y ,
Great to hear your question got answered. Don’t hesitate to ask any other questions here, or to start a new topic in the community if it’s about something completely different. If it’s a completely different topic then a new post could be best for new eyes.
Hi @GYY-y ,
Great to hear your question got answered. Don’t hesitate to ask any other questions here, or to start a new topic in the community if it’s about something completely different. If it’s a completely different topic then a new post could be best for new eyes.