• Hi.How to change the “h2” side column and footer widgets to “h4”. It spoils me Seo.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @alexgosh,

    Yes, you are right, @unster! Do try the solution provided in the above Support Topic with the requirement.

    I hope that helps.

    Regards,
    Suman

    Thread Starter Alex

    (@alexgosh)

    Hello.

    add_filter(‘astra_advanced_footer_widget_1_args’ , ‘change_footer_title’);

    function change_footer_title(){
    $widget_array = array(
    ‘name’ => esc_html__( ‘Footer Widget Area 1 customized’, ‘astra’ ),
    ‘id’ => ‘advanced-footer-widget-1’,
    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h4 class=”widget-title”>’,
    ‘after_title’ => ‘</h4>’,
    );
    return $widget_array;
    }

    The specified code really changes the widget “h” title in the footer. But only the first area. Attempts to adapt this code to change the second and third areas led to the collapse of the site. If it’s not difficult, write the modified code for the widget title of the second and third footer areas. Plus, the problem of the widget “h” title in the sidebar of the site remains unresolved.
    Regards,
    Alex.

    Hello @alexgosh

    You can follow the instructions as mentioned here in the topic to create separate functions for the other widgets title.

    Also, you can try the article for changing the Sidebar Widget title.

    While, if you still have any concerns we would recommend reaching out to us through our Support Portal for quicker resolution.

    I hope that helps.

    Regards,
    Suman

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘change widgets h2 to h4’ is closed to new replies.