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

    Hallo liebes Enfold Team,
    ich würde gerne Kommentare auf meinen Blogbeiträgen einbauen. Leider sind die Überschriften als H3 formatiert, sodass diese im Inhaltsverzeichnis als

  • “Hinterlasse ein Kommentar” und
  • “Schreibe einen Kommentar Antworten abbrechen”
  • angezeigt werden. Details siehe Link: https://solvent.at/uebertragende-sanierung/
    Am liebsten wäre mir, wenn die Kommentare nicht als Überschriften formatiert wären. Ist dies möglich?
    Danke für die Hilfe!
    LG

#1250923

Hey benedikt_d_brand,

Here is the code you can put in your funtions.php


function my_avf_customize_heading_settings_comments( array $args, $context, array $extra_args = array() )
{
	
	if( $context == 'comments_open' )
	{
		$args['heading'] = 'div';			//	change heading from h3 to  div
	} else if ( $context == 'comments_closed' ) {
		$args['heading'] = 'div';
	)
	return $args;
}

add_filter( 'avf_customize_heading_settings', 'my_avf_customize_heading_settings_comments', 10, 3 );

If you need further assistance please let us know.

Best regards,
Victoria

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.