Widget Featured Post Change H2

Community Forums Forums Design Tips and Tricks Widget Featured Post Change H2

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  nickthegeek 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5234

    melriksdesign
    Participant

    featured-post-widget.php, line 126, is this code

    if ( ! empty( $instance['show_title'] ) )
    printf( ‘<h2><a href=”%s” title=”%s”>%s</a></h2>’, get_permalink(), the_title_attribute( ‘echo=0′ ), get_the_title() );

    How do I add something to functions.php in my child theme to strip out the h2 and change them to p?

    if ( ! empty( $instance['show_title'] ) )
    printf( ‘<h2><a href=”%s” title=”%s”>%s</a></h2>’, get_permalink(), the_title_attribute( ‘echo=0′ ), get_the_title() );

    All those h2 will mess up my SEO efforts.

    #5525

    nickthegeek
    Keymaster
    Post count: 751

    Sorry this can’t really be done. The only way to change that is to make your own custom widget.

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

You must be logged in to reply to this topic.