Home › Forums › Support › How do I highlight text on a page post? This topic has 8 replies, 3 voices, and was last updated 4 years, 4 months ago by David. Viewing 9 posts - 1 through 9 (of 9 total) Author Posts January 13, 2019 at 3:20 pm #780953 Michael How do I highlight several words in a paragraph? I would like to highlight them yellow. Thanks January 13, 2019 at 3:24 pm #780954 LeoStaff Customer Support Hi Michael, So you can do this for the HTML content part: <span class="highlight">some highlighted text</span> Then add this CSS: span.highlight { background color: #f7f30c; /* Change color accordingly */ } Using one of these methods: https://docs.generatepress.com/article/adding-css/ January 14, 2019 at 1:37 am #781166 DavidStaff Customer Support Hi there, sorry the orginal CSS in the email had a typo ie. hyphen missing: span.highlight { background-color: #f7f30c; /* Change color accordingly */ } January 14, 2019 at 4:36 am #781280 Michael Still no luck after trying everything you listed. January 14, 2019 at 4:39 am #781282 DavidStaff Customer Support Where are you adding the CSS? I just added it to the head of the page in browser tools and it works. EDIT: Just noticed you added it to an inline style on the following P tag. Remove it from there and add it to Customizer > Additional CSS January 14, 2019 at 4:40 am #781284 Michael Ok so I wasn’t adding the CSS to the head of the page. How do I do that? January 14, 2019 at 5:07 am #781299 DavidStaff Customer Support Just put the CSS; span.highlight { background-color: #f7f30c; /* Change color accordingly */ } In the Customizer > Additional CSS. January 14, 2019 at 5:21 am #781315 Michael I included his short video showing you what I’m doing. Am I missing something? https://www.useloom.com/share/2c14ddb26fad4ab38fc8aceb694a5fbe January 14, 2019 at 5:34 am #781326 DavidStaff Customer Support OK, remove the blocks that you have created. And: 1. Just add the following markup to your paragraph block: <span class="highlight">some highlighted text</span> 2. Go to Dashboard > Appearance > Customizer > Additional CSS and paste in: span.highlight { background-color: #f7f30c; /* Change color accordingly */ } Then whenever you want to highlight some text you just need to wrap the content in the span as per point 1. Author Posts Viewing 9 posts - 1 through 9 (of 9 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In