Answer the question
In order to leave comments, you need to log in
How to make BEM and WP friends?
Good evening! I work in a team, a teammate who writes on WP complains that when everything is hung up on classes, it's bad:
<section class="sec1">
<h1 class="title title_black">
<p class="text text_with_some_css_style">
</section>
<section class="awesomeClass">
<h1>
<p>
</section>
.awesomeClass h1
.awesomeClass p
.awesomeClass ul
.someClass1 ul:first-child
.someClass1 ul:nth-child(2)
Answer the question
In order to leave comments, you need to log in
Well, in general, almost all things in WP, widgets, menus, etc., you can change the template for all of them and there will be no problems.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question