Adding dynamic sections to Pages (ex. About Us page)

Solved
Highlighted
New Member
2 0 0

Hello! I'm new in learning liquid and building my own theme. 

I'm just wondering if we can add presets / dynamic sections in pages like on the home page? but we can only include what we want to include and not all the sections in presets. So the client will have an option in the Theme Editor whether or not he/she wants to add that section to her/his page (ex. About Us page).

Scenario:

I added a static section on page "about us" page by adding {% section 'section name'%}, but I want it to be dynamic that clients can have the option to add it or not on to the page.

 

Thank you so much!

0 Likes
Highlighted
Shopify Partner
1012 209 254

This is an accepted solution.

Hello,

Yes you are right we can't ad dynamic sections in inner pages like homepage.

Solution for your scenario is: Add a checkbox in section at top and call it Mark check to display ( or anything else which is clear to users ) 
Now in code get the value of checkbox and write a if condition. If checkbox is checked display specific static section.

Thanks 

Want to modify or custom changes on store hire me.
My Email: guleriathakur43@gmail.com
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
0 Likes
Highlighted
New Member
2 0 0

Thank you so much for this!

0 Likes