Skip to content

Commit

Permalink
Merge pull request #25 from lacimarsik/lm/nl2br
Browse files Browse the repository at this point in the history
Use nl2br in Why Us section
  • Loading branch information
lacimarsik committed Mar 2, 2020
2 parents 3a25825 + 90a7ac4 commit ece3206
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}

if(!empty($why_us_item->desc)) {
echo '<p>'. esc_attr($why_us_item->desc).'</p>';
echo '<p class="keep-newlines">'. esc_attr($why_us_item->desc).'</p>';
}
echo '</div>';
$counter++;
Expand Down
4 changes: 4 additions & 0 deletions wp-content/themes/Parallax-One/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,10 @@ img.why-us-img {
height: 100px;
}

p.keep-newlines {
white-space: pre-line;
}

/* when why-us boxes are next to each other in wider viewport */

@media (min-width: 992px) {
Expand Down

0 comments on commit ece3206

Please sign in to comment.