is there a way to include a replo section in a the...
# replo-help
a
is there a way to include a replo section in a theme via code? i.e. adding a replo section to theme.liquid. reason being, I would like a replo header to show on all pages, except for the homepage
e
Hi there! You can find the code related to Replo Sections by looking up the name of the section in the theme code editor (Replo related code will be prefixed with 'replo-'). When copying the Replo section code, you can omit part of the code that says Schema (see attachment) You can then add that code to the theme.liquid file. Here's an example of how you can display the section on pages except the homepage.
Copy code
{% if template.name != 'index' %}
      <!-- Replo Section Code Here -->
{% endif %}
🙌 1
n
An even easier way is to use the shopify section tag:
Copy code
{% section 'replo-header' %}
🙏 1
@Arthur Shim I think you'll probably want that one!
so in total,
Copy code
{% if template.name != 'index' %}
      {% section 'replo-header' %}
{% endif %}
a
Thanks @Noah Gilmore! that’s what i ended up doing 🙂 weird that isnt in the support docs or mentioned by the support team
n
yep, will add it!
🙌 1