Home Forums WoodMart support forum Change title tag of footer headers

Change title tag of footer headers

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #280599

    protectionshopnl
    Participant

    Hello there,

    I’m wondering how we can change the standard header titles of footer headings. We’re inserting footer elements via the widgets tab. Standard footer titles are <h5> (see the attached screenshot) but we would like to have them <h2> with the same styling as they are now.

    How can we accomplish this? Thank you!

    Regards,
    Fabian

    #280811

    Hello,

    Sorry but there is no option in Theme Settings available for that.

    It requires customizations and this is beyond our limitations and support policy.

    Regards.
    Xtemos Studios

    #280821

    protectionshopnl
    Participant

    Hello Aizaz,

    Of other elements we can easily change title elements and those headings.

    Maybe it’s an solution of instead using the preformatted “title” box, to write the title in normal HTML? If we use <h2>TITLE</h2>?

    Regards,
    Fabian

    #280834

    Hello,

    You can try implementing the solution if this works for you.

    Regards.
    Xtemos Studios

    #280859

    protectionshopnl
    Participant

    Hello Aizaz,

    I will check this!

    How can I assure the <h2> is the same styling as now used in the regular title box configured via Woodmart?

    Regards,
    Fabian

    #280910

    protectionshopnl
    Participant

    Hello Aizaz,

    Ignore my previous reply. I’ve seen the following setting in Woodmart > Theme Settings > Typography. There is a setting “Widget titles font” / Typography options for titles for widgets in your sidebars. Here we can exactely style our widget titles. But not the HTML title tag <h2>, <h3> or <h4> that it should have.

    Is there a workaround for this? Because not using the widget title box, but typing it in html like <h2>title name</h2> makes that widgets are not collapsing on mobile anymore. Because there’s not entered an main title in the title placeholder.

    Hope we can fix this. I can easily see this in developer view in Google Chrome and edit this.. But don’t know where to find it in the settings or theme.

    Regards,
    Fabian

    Attachments:
    You must be logged in to view attached files.
    #280914

    protectionshopnl
    Participant

    Hello Aizaz,

    Other themes can use snippet code in the functions.php file for this. For example this piece of code: https://www.denisbouquet.com/wordpress-h1-widget/

    // CHANGES WIDGET HEADINGS TO H3 (INSTEAD OF H1)

    
    add_action( 'after_setup_theme', 'remove_parent_theme_features', 10 );
    
    function remove_parent_theme_features() {
    	remove_action( 'init', 'sempress_widgets_init' );
    	add_action( 'init', 'ph_sempress_widgets_init' );
    }
    
    function ph_sempress_widgets_init() {
      register_sidebar( array(
        'name' => __( 'Sidebar 1', 'sempress' ),
        'id' => 'sidebar-1',
        'before_widget' => '< section id="%1$s" class="widget %2$s">',
        'after_widget' => '< /section>',
        'before_title' => '< h3 class="widget-title">',
        'after_title' => '< /h3>',
      ) );
    }

    Maybe some elements/pieces of code are different for Woodmart? But the scope is the same.

    Regards,
    Fabian

    #281140

    Artem Temos
    Keymaster

    Hello,

    You can change this in the file woodmart/inc/theme-setup.php. The function is called woodmart_widget_init().

    We will also add an option to change that tag in our future updates.

    Kind Regards

Viewing 8 posts - 1 through 8 (of 8 total)