Title: Using span to format text
Last modified: July 2, 2020

---

# Using span to format text

 *  Resolved [callerpatty](https://wordpress.org/support/users/callerpatty/)
 * (@callerpatty)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/using-to-format-text/)
 * Hi
    We love your slider, but I have a question on text formatting. We would like
   to color a portion of some text. We do it in our regular code by using the <span
   > and assigning a css class. I’ve got this in place in our slider text, but it
   appears that the <span> is being stripped out.
 * Is there something we need to do in order to be able to accomplish this?
    For
   example, client wants orange periods – here is what is in our slider: The view
   source shows that the span tags are stripped out.
 * `You need it<span class=”orange”>.</span> We find it<span class=”orange”>.</span
   >
    -  This topic was modified 5 years, 11 months ago by [callerpatty](https://wordpress.org/support/users/callerpatty/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Ramona](https://wordpress.org/support/users/nextend_ramona/)
 * (@nextend_ramona)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/using-to-format-text/#post-13064394)
 * Hi [@callerpatty](https://wordpress.org/support/users/callerpatty/)
 * Please make sure you’re using the Text layer:
    [https://smartslider.helpscoutdocs.com/article/1832-text-layer](https://smartslider.helpscoutdocs.com/article/1832-text-layer)
   as the Heading layer does not support HTML codes: [https://smartslider.helpscoutdocs.com/article/1814-heading-layer](https://smartslider.helpscoutdocs.com/article/1814-heading-layer)
 * This code should work fine in the text layer. (Although the ” signs are broken
   in this example, but I think that’s just due to the forum’s formatting.) This
   whas the code I tried in the text layer:
    `You need it<span class="orange">.</
   span> We find it<span class="orange">.</span>` and it worked fine for me.
 *  Thread Starter [callerpatty](https://wordpress.org/support/users/callerpatty/)
 * (@callerpatty)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/using-to-format-text/#post-13064420)
 * Perfect!!!! That completely solved my coloring issue. Thank you! Client will 
   be thrilled.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using span to format text’ is closed to new replies.

 * ![](https://ps.w.org/smart-slider-3/assets/icon.svg?rev=2307688)
 * [Smart Slider 3](https://wordpress.org/plugins/smart-slider-3/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-slider-3/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-slider-3/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-slider-3/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-slider-3/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-slider-3/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [callerpatty](https://wordpress.org/support/users/callerpatty/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/using-to-format-text/#post-13064420)
 * Status: resolved