Skip to content

Commit 9969c16

Browse files
committed
Improved spacing with the is-layout-constrained and entry-content classes around the content.
1 parent 7cd58c5 commit 9969c16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/single-lesson-focus.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@
5858
<?php
5959
while ( have_posts() ) :
6060
the_post();
61+
$lesson_content_classes = array( 'llms-lesson-content', 'entry-content', 'is-layout-constrained' );
62+
$lesson_content_classes = apply_filters( 'llms_focus_mode_lesson_content_classes', $lesson_content_classes );
6163
?>
6264
<h1 class="llms-focus-mode-title"><?php the_title(); ?></h1>
63-
<div class="llms-lesson-content">
65+
<div class="<?php echo esc_attr( implode( ' ', array_filter( $lesson_content_classes ) ) ); ?>">
6466
<?php the_content(); ?>
6567
</div>
6668
<?php

0 commit comments

Comments
 (0)