1

Is it possible to style the partial design using the scriban template. For example, I just made the new header partial design for my new site, and I am now clueless on how to style it. I have been styling my other components using Scriban, beacuse I find it really easy to use (for me at least). What is your preffered way of designing/styling the header partial design in SXA Sitecore?

1 Answer 1

2

A partial design works just the same as the other items/pages when it comes to adding components and styling those. You can open the partial design in the Experience Editor and add all the components you want - including the variants (where you can use Scriban) and styles if needed.

You will notice that a partial design has a layout definition, so you can also edit the layout just as you are used to with other items.

More information in the official docs: https://doc.sitecore.com/xp/en/developers/sxa/102/sitecore-experience-accelerator/create-and-change-a-partial-design.html

3
  • So I can just add the new for example Link List with the Scriban template variant on the header partial design, and it would look like the way I designed it, with CSS and everything?
    – Samke11
    Commented Feb 13, 2022 at 10:32
  • Yes, your partial design can use the variants (with Scriban) for any component.
    – Gatogordo
    Commented Feb 13, 2022 at 10:42
  • Thank you for explaining to me properly!
    – Samke11
    Commented Feb 13, 2022 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.