Insert custom tags inside wordpress the_content();

Question

I want to be able to insert <span class="someClass"></span> inside wordpress the_content(); is there a way to do that ? so far i have been able to to target the first paragraph through preg_replace and add my class there but i also need a span tag a few words into the_content

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/insert-custom-tags-inside-wordpress-the_content/">

Insert custom tags inside wordpress the_content();</a>
0
Hadi Pawar 2 months 0 Answers 46 views 0

Leave an answer