File "entry_loop_title.php"
Full Path: /home/romayxjt/public_html/wp-content/themes/kadence/template-parts/content/entry_loop_title.php
File size: 673 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Template part for displaying a post's title
*
* @package kadence
*/
namespace Kadence;
$slug = ( is_search() ? 'search' : get_post_type() );
$title_element = kadence()->option( $slug . '_archive_element_title', array(
'enabled' => true,
) );
if ( isset( $title_element ) && is_array( $title_element ) && true === $title_element['enabled'] ) {
if ( is_search() || is_archive() || is_home() ) {
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
} else {
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
}
}