Forums Forums Search & Filter Pro How to remove h4?

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #207536

    Hi,

    In the search form UI, I’d like to remove the <h4></h4> from the heading and replace it with <div></div> because I don’t like having h4 everywhere on my page, it’s bad practice for SEO.

    Can you tell me how to do that please ?

    Best regards,

    Trevor
    #207539

    I am sorry, but to change this is not an option. It should become possible in V3, but that is still some months away.

    Anonymous
    #207543

    Hi,

    Can you at least tell me in which php file I can modify that, while waiting for V3?

    Best regards

    Trevor
    #207557

    In:

    wp-content/plugins/search-filter-pro/public/includes/class-search-filter-display-shortcode.php

    Line 1099, I think:

    if(isset($field_data['heading']))
    {
      if($field_data['heading']!="")
      {
        $returnvar .= "<h4>".esc_html($field_data['heading'])."</h4>";
      }
    }
    Anonymous
    #216555

    Hi Trevor, same problem here: h4 should not be used here for SEO purposes. A span would be enough. 🙂

    Trevor
    #216563

    As I said, we are working on it for V3.

    Anonymous
    #216568

    Thanks for your confirmation. 😉

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