Home>Support>Please remove in core empty h2 tags when no title

Please remove in core empty h2 tags when no title

Hello

Because design, I’m not using titles sometimes. Instead I have empty h2 tags and this is counted as code error. Is possible to remove it when no title entered?

Thank you

ps.

here source code sample:

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 7 months ago Greg Priday
    Hi, I Work Here

    Hi Pawel

    In general, this is how all our widgets and the core WordPress widgets already behave. They skip out titles if the title field is empty. Which specific widget is still displaying the empty title tags for you?

  2. 8 years, 7 months ago Paweł Tomkowiak

    Thank you for fast response. This is image widget, I can look for more

     
    <div class="so-panel widget widget_sow-image panel-first-child" id="panel-25-1-0-0"><div class="so-widget-sow-image so-widget-sow-image-sow-image-1c389ca87c1a">
    	<h3 class="widget-title">	<h2>  </h2>
    	</h3>

    And this is SiteOrigin Image widget

    Thank you again

  3. 8 years, 7 months ago Paweł Tomkowiak

    Sorry for bad formatting, I see here no edit option, I will know in future

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More