Home Forums WoodMart support forum Change widget title tag

Change widget title tag

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #217576

    prokreeger
    Participant

    Hello,

    How can I change h5 widget title tag to something like h2, p, div etc. I need to make this changes on category and blog pages.

    #217616

    Hello,

    I have visited your website. Sorry but there is no such option in Theme Settings to change the tags for title element in the widget.

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

    Regard’s.
    Xtemos Studio.

    #217709

    prokreeger
    Participant

    I have find answer by myself here it is:

    add_filter( 'dynamic_sidebar_params', 'change_widget_titles', 20 );
    function change_widget_titles( array $params ) {
            
        // $params will ordinarily be an array of 2 elements, we're only interested in the first element
        $widget =& $params[0];
        $widget['before_title'] = '<div class="widget-title">';
        $widget['after_title'] = '</div>';
        
        return $params;
            
    }
    #217714

    prokreeger
    Participant

    I have a similar question to the previous one: “How to change product title tag on category page”.

    I have finded code with this tag in this file woodmart/woocommerce/templates/loop/title.php

    I have copied this file to my child theme with the same structure, but nothing changes.

    How to do this???

    #217793

    Hello,

    Sorry but we could not help you with this as you are asking for core files customization and that are beyond our limitations and support policy.

    Regard’s.
    Xtemos Studio.

Tagged: ,

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