• Resolved tatami3lri

    (@tatami3lri)


    I have just downloaded and installed your brilliant plug-in in order to replace WordPress Related Posts, which is no longer supported.

    The heading for Custom Related Posts seems to be set to H3 by default. Please could you tell me how to set it to H2.

    Thanks and best wishes.

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

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

    (@brechtvds)

    We don’t have a setting for that at the moment, but you can achieve that by adding the following code to your theme’s functions.php file:

    function crp_output_list_title( $title ) {
    	$title = str_replace( '<h3', '<h2', $title );
    	$title = str_replace( '</h3>', '</h2>', $title );
    
    	return $title;
    }
    add_filter( 'crp_output_list_title', 'crp_output_list_title' );
    Thread Starter tatami3lri

    (@tatami3lri)

    Thank you so much for your helpful reply. I’m amazed at such service on a Sunday evening! I’ve just copied and pasted the code you sent me into my theme’s functions.php file as you suggested. Problem solved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customizing Custom Related Posts title’ is closed to new replies.