This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Formatting live search results

#54185
Ernest MarcinkoErnest Marcinko
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