Home>Support>h3 widget class to h1 or h2

h3 widget class to h1 or h2

By Mediajuice, 9 years ago. Last reply by Greg Priday, 9 years ago.

Hi there,

Your theme automatic makes h3 tags of every title, I think it’s because of the way you callout of the widget-title? Anyway I can change this and make a h1 or h2 tag of this? An example:

<h3 class="widget-title">SEO – Zoekmachine optimalisatie</h3>
<—— this needs to be h1

Would like to hear from you! Thanks!

URL: http://www.searchsignals.nl/seo

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

  1. 9 years, 7 months ago Mediajuice

    Wow… Sorry, didn’t make every tag

    <h1>, <h2>, <h3>

    ….

    Hi there,

    Your theme automatic makes

    <h3>

    tags of every title, I think it’s because of the way you callout the widget-title? Any way I can change this and make a

    <h1>

    or

    <h2>

    tag of this? An example:

    <h3 class="widget-title">SEO – Zoekmachine optimalisatie</h3>

    <β€”β€” this needs to be

     <h1>

    Would like to hear from you! Thanks!

    URL: http://www.searchsignals.nl/seo

  2. 9 years, 7 months ago Greg Priday
    Hi, I Work Here

    Hi Mediajuice,

    At the moment, this isn’t possible. It really should be though. I’ve added some filters to my development version of Page Builder that’ll let you filter arguments using PHP. If there’s enough demand for it, I’ll also make these available through the plugin settings.

    But at very least, you’ll be able to filter these using PHP in the next update (2.0.8). Something like the following.

    // Change the arguments passed to widgets in Page Builder 2.0.8 and above.
    function mytheme_filter_siteorigin_panels_widget_args($args) {
        $args['before_title'] = '<h1 class="widget-title">';
        $args['after_title'] = '</h1>';
    }
    
  3. 9 years, 7 months ago Mediajuice

    Hi Greg,

    Thanks for your answer, but I’m not sure what to do with this information. Should I place your PHP code somewhere – and if so, where? – or is this something totally different?

    I’m not really known with PHP…

    Thanks!

  4. 9 years, 7 months ago Greg Priday
    Hi, I Work Here

    I wouldn't really recommend using the PHP code unless you're familiar with coding. I'll look at adding settings for this in the future. These will be much more developer friendly.

  5. 9 years, 3 months ago petcar

    Hi, I am also interested in changing the default H3 title into H1 or H2? How can I do this?

    BTW: why You do You default with H3 for a Main Title?

  6. 9 years, 3 months ago Greg Priday
    Hi, I Work Here

    Hi Petcar

    You can now actually set this in Page Builder’s settings. If you navigate to Settings > Page Builder. Under the Widgets tab is a setting called “Widget Title HTML” – change this to whatever you’d like to use.

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