Dependent edits across many pages

Hello,

I have several layouts that contain the same template. Each layout displays products from a certain category.

I want for the layouts to still be affected to specific product categories, but I want aesthetic edits to reflect on every page whenever I change a single one.

Example:

  • Layout 1 is for t-shirts, Layout 2 is for Hoodies. That’s decided in the Looper Provider > Query. Fine.
  • When I change the box-shadow in Layout 1, I want it to automatically change in Layout 2.

Is that possible?

Thanks.

Hi Zineb,

Thanks for reaching out.
That is not possible in the usual way, but you can use any component in both the layout, and if you change anything on that component it will reflect in both. Else, you can use a common class and you can add custom CSS to Global CSS which will affect both the layouts.

Hope it helps.
Thanks

Hey Tristup!
Thanks for your reply. I’m checking out components in the documentation and on Youtube. What an exciting feature! I remember global blocks from before; that’s what I wasn’t able to find today. Excited to try out components!
Thanks.

Hi Zineb,

The Global Blocks are now called Components with more features. I am sure that you will love it, and it will serve your purpose.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.