Having a look at boost_campus theme, I noticed that they use a particular method to add functionality to the theme, i.e adding scss variables according to theme settings (loaded throug get_pre_scss function) and defining conditional scss rules related to these variables representing theme settings. ex:
@if variable-exists(section0title) {
@if $section0title == 'yes' {
body.path-course-view #section-0 h3.accesshide {
position: inherit;
left: inherit;
font-weight: $headings-font-weight;
font-size: $h3-font-size;
width: initial;
height: initial;
clip-path: none;
}
}
}
Are there advantages over adding body classes from the layout file? Performance maybe?
Thanks in advance