Target specific section with CSS Styling

Answered

6 Comments

  • Trapta
    Community Moderator

    Hi @Andrew Steier,

    You can use the CSS class in order to create different styles and using {{#is id 'SECTION_ID'}}  CLASS_NAME {{/is}} you can add the class as per your need.

    Let me know if this solves your issue.

    Thanks

    0
  • Andrew Steier

    so presumably that's the same for categories as well, right?

    so you define this in the section_page.hbs, yea?

    0
  • Trapta
    Community Moderator

    Yes, it's the same for categories as well. The above code is to design sections but you can use {{category.id}} to design the category.

    Thanks

    Trapta

    0
  • Andrew Steier

    Trapta
    Apologies for the delay - went out on Paternity leave.

    {{#is category.id '12345'}} class='classId'{{/is}}  -- -- correct?
    I'm not clear on the syntax for mapping to the class ID here.

     

     

    0
  • Trapta
    Community Moderator

    Hi Andrew Steier,

    Yes, you are right on the syntax part. That's how you have to mention it in the code. Also, congratulations :)

    Thanks

    0
  • Andrew Steier

    thanks! ;D

    0

Please sign in to leave a comment.

Powered by Zendesk