Home › Forums › Front-end Issues › Add a class to every paragraph created by textarea › Reply To: Add a class to every paragraph created by textarea
The class setting is only used in the admin and I thing that the question is about the front end of the site.
The best choice for this is to wrap your field output in a div and use it to target the p’s in it.
<div class="your-class-here"><?php the_field('your-field'); ?></div>
<style>
.your-class-here p {
/* your styles here */
}
</style>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.