• Resolved KS

    (@karl19)


    We’re adding page and post H1 titles with Elementor, getting output like this:

    <h1 class="elementor-heading-title elementor-size-default">TITLE</h1>

    I need to add “entry-title” as a class to all H1 elements added via Elementor and would like to find a global solution. I can’t find anything in the Elementor settings. I also tried this, but doesn’t work either:

    function h1_entry_title( $classes ) {
      $classes[] = 'entry-title';
      return $classes;
    }
    add_filter('the_title', 'h1_entry_title');

    If anyone has any tips, it would be much appreciated.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add class to all Elementor H1 titles’ is closed to new replies.