Target specific section with CSS Styling

Respondidas


Publicado 17 jun 2021

is there a way to style my section elements differently for different sections?


0

6

6 comentarios

thanks! ;D

0


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


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


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


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

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

0


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


Iniciar sesión para dejar un comentario.

¿No encontró lo que buscaba?

Nueva publicación