This Pro tutorial provides the steps to extend a Bricks element as a new element by duplicating and modifying it.
As of Bricks 1.6.1, there is no built-in control or option to specify that the HTML tags like p
NOT get stripped in excerpts when using the Excerpt element.
We shall copy this element to the child theme as a Custom Excerpt element, add a "Keep HTML Tags" checkbox control, modify the output of render()
such that if our custom checkbox is ticked, the HTML tags do not get removed.
Step 1
If the Bricks child theme is not active already, upload and activate it.
Copy/duplicate
/wp-content/themes/bricks/includes/elements/post-excerpt.php
as
/wp-content/themes/bricks-child/elements/custom-post-excerpt.php
Step 2
Edit the custom-post-excerpt.php
file.
This is a BricksLabs Pro tutorial.
For full access login below or create your BricksLabs Pro account