• The linked page has a number of tabs. Within each tab, there is a heading – e.g. ‘August / ao?t 2011’. With all of these headings, the background colour is the same as the rest of the text but for the February 2014 tab the heading has a grey background.

    The source code for all of t he headings (except February 2014) look like this one for May 2013:

    <div class="wp-block-kadence-tab kt-tab-inner-content kt-inner-tab-6 kt-inner-tab_65345d-01"><div class="kt-tab-inner-content-inner">
    <h2><strong>May / </strong><em>mai </em>2013</h2>

    However, February 2014 looks like this:

     <div class="wp-block-kadence-tab kt-tab-inner-content kt-inner-tab-7 kt-inner-tab_8510cd-56"><div class="kt-tab-inner-content-inner">
    <h2><strong><font style="background-color: rgba(25, 30, 35, 0.2);"><strong>February / </strong><em>février 2014</em><br></font></strong></h2>

    As you can see, a font tag setting background-color has appeared from somewhere and this is the only place on the site that it occurs. The person creating this page is a total non-specialist who could not have inserted the tag manually.

    I can get rid of the tag easily enough but does anyone have any idea how this could have occurred in the forst place?

    • This topic was modified 4 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • This could have a couple of ways.

    If this text was copy and pasted from somewhere else it’s likely that the tags came with the copy & paste. The <font> tags is deprecated and neither the Block Editor or WYSIWYG editor should have added that in. If you use a page builder it may use older tags such as this.

    It’s difficult to say based on a one-off case but if it’s a common occurrence I would start pasting text without formatting when possible to prevent tags being carried over. Maybe disable the plugins using the Health Check & Troubleshooting plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Rogue heading background colour’ is closed to new replies.