Issue: A page footer title “recommended product for ‘Title’” appears on all pages. The merchant wants it to show only on pages that actually have recommended products (set via metafields), not on pages like Corporate Social Responsibility.
Context: In Shopify, multiple pages currently share the same template (layout). Recommended products are added as a block within that shared template. Metafields are custom fields used to attach product/page-specific data.
Proposed solution: Duplicate the template, remove the recommended products block from the original, and assign the duplicate to the specific “office” page that needs the section. Screenshots were provided to illustrate the steps.
Complication: After duplicating, the merchant reports lost formatting (small icons, half-width images) and prefers avoiding template duplication. They ask if a conditional (“if” statement) could show the title/section only when metafields are present.
Latest update / Next steps: The helper asked for collaborator access via DM to fix it directly.
Status: Unresolved/ongoing. Key open item is implementing a conditional render based on metafields or resolving formatting discrepancies in the duplicated template. Screenshots are central to understanding the examples.
Summarized with AI on December 22.
AI used: gpt-5.
however all my other pages should not have this title which dont have the recommended products - see below my other page example which is my page for corporate social responsibility. as you can see the recommended products title also shows here
please can someone advise how i can remove this from all other pages so that it only shows on the pages where there are recommended products. the recommended products are set as metafields
i have tried this but i lose all my formatting on the new page, so all the icons are really small, the pictures are only half the page etc etc
is there not way of doing this without creating a new template - becuase this was all done by a expert, where as i dont really want to create a new template and have to do all the formatting and ccs again
i heard there is a thing called if condition in coding. maybe there is a way to do it this way