• Resolved johnegg

    (@johnegg)


    Hey guys, for accessibility reason I need to change the list shortcode event titles to h3 instead of h4.

    i can see this line in the php file:

    $event_output .= apply_filters( ‘ecs_event_title_tag_start’, ‘<h4 class=”entry-title summary”>’, $atts,

    How do I override this without directly editing the plugin?

    Cheers
    John

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    Hi @johnegg !

    You could use the filter in order to change the output. There’s an article here on creating a feature plugin to add your code:

    https://brianhogg.com/functional-wordpress-plugins/

    While help with customizations is normally beyond the support we can provide, the code to change it would be something like this:

    
    function my_change_ecs_header_tag( $output, $atts, $post ) {
        return '<h3 class="entry-title summary">';
    }
    add_filter( 'ecs_event_title_tag_start', 'my_change_ecs_header_tag', 10, 3 );
    

    Definitely want the output and your site to be as accessible as possible ??

    Hope that helps!

    Thread Starter johnegg

    (@johnegg)

    Thanks Brian, That worked! ??

    • This reply was modified 2 years, 8 months ago by johnegg.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change h4 title to h3’ is closed to new replies.