Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Formatting live search results › Reply To: Formatting live search results
May 29, 2025 at 10:20 am
#54185
Keymaster
Hi,
Sure! Some attributes or attribute values might be marked as dangerous by the wp_kses_post hook, which is used to process the final content to avoid any XSS security threats.
Long story short, instead of using inline attributes, please use a class name and custom CSS instead:
<p class="myclassname">...</p>
And custom CSS:
.myclassname {
margin-top: -5px;
margin-bottom: 5px;
font-style: italic;
font-size: 0.8em;
}
This will do the trick 🙂
Also, notice that the closing P tag has a mistake, it’s </ip> and it should be </p>: https://i.imgur.com/NRkUbsg.png