This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Please remove in core empty h2 tags when no title

Open 3 replies feature-requestpluginplugin-page-builder
Started · Latest reply by Paweł Tomkowiak

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.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Greg Priday Staff

    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. 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. 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.

Have a different question or issue?

Start New Thread