Can I customize dynamic section layouts for individual blog posts?

Hi All,

I know that this has probably been discussed a million times but I still can’t find an easy solution to this. :slightly_smiling_face:

I would like to be able to reference an existing section (hero.liquid for example) and use it for a page or use in a blog post, but when I define this in the theme editor it only allows me to define it once and not customize it per blog post?

Do I need to customize the storage location for the meta-data associated with each blog post. Where is this stored? section id=??? data-section-id=??? :slightly_smiling_face: Please Help.

Using Section in Template file (page.dynamic.liquid)

{% section 'hero' %} {{ page.content }}

Cheers,

Steve

1 Like

@stv

Sorry for facing this issue, it’s my pleasure to help us.

Welcome to the Shopify community!
and Thanks for your Good question. :blush:

Please share your site URL,
So I will check and provide a solution here.

Hi KetanKumar,

Thanks for responding about dynamic sections on pages and posts. This is a generic question that I would like to apply to a number of stores so I don’t know why you need a link to website, but my Development website is skullindesign.com

let me know if you have example code or describe how you would solve such an issue.

I appreciate any assistance.

Thanks,

Steve

@stv

yes can you please create new section and add this page that’s is

Hi, The pages are created at:

https://www.skullindesign.com/pages/section_page1

https://www.skullindesign.com/pages/section_page2

If you look at this code, how do I specify the data-section-id? it defaults to hero but on main page it has a GUID generated number for each section?

thanks,

Steve

@stv

great

can you please other section as you like

In responds to " great can you please other section as you like"

Can you repeat what you want me to do? I don’t understand what you are saying.

thanks,

Steve

@stv

do you need multiple sections on the custom page?

Yes, thanks … multiple selections would be great!

1 Like

@stv

Thanks for confirm

please try this

http://www.codeshopify.com/blog_posts/shopify-sections-with-dynamic-blocks

Thanks for the link, that is a way to create multiple snippets on a page but I was looking for a way to re-use the default sections instead of creating a new section or snippet file for each use.

As I want to use sections to format each blog post.

i appreciate your help.

cheers,

steve

1 Like

@stv

Yes, please try it’s easy for your add multi-block same as home page