hello everyone please tell me how to change post title tag from H3 to H1 in my newspaper theme. please tell me step by step. Thank you.. BEST
Hi,
If you want to change the h3 tag you must edit the td_module.php found in the theme files->includes->wp_booster like this – https://www.screencast.com/t/I6DjpEzOQ7f3
Thanks
i have done changes like this. now everything is alright?
function get_title($cut_at = ”) {
$buffy = ”;
$buffy .= ‘<h1 class=”entry-title td-module-title”>’;
$buffy .=’href . ‘” rel=”bookmark” title=”‘ . $this->title_attribute . ‘”>’;
//see if we have to cut the title and if we have the title lenght in the panel for ex: td_module_6__title_excerpt
if ($cut_at != ”) {
//cut at the hard coded size
$buffy .= td_util::excerpt($this->title, $cut_at, ‘show_shortcodes’);
} else {
$current_module_class = get_class($this);
//see if we have a default setting for this module, and if so only apply it if we don’t get other things form theme panel.
if (td_api_module::_helper_check_excerpt_title($current_module_class)) {
$db_title_excerpt = td_util::get_option($current_module_class . ‘_title_excerpt’);
if ($db_title_excerpt != ”) {
//cut from the database settings
$buffy .= td_util::excerpt($this->title, $db_title_excerpt, ‘show_shortcodes’);
} else {
//cut at the default size
$module_api = td_api_module::get_by_id($current_module_class);
$buffy .= td_util::excerpt($this->title, $module_api[‘excerpt_title’], ‘show_shortcodes’);
}
} else {
/**
* no $cut_at provided and no setting in td_config -> return the full title
* @see td_global::$modules_list
*/
$buffy .= $this->title;
}
}
$buffy .=’‘;
$buffy .= ‘</h1>’;
return $buffy;
}
Hi,
You can verify the change like this – https://www.screencast.com/t/9Suwt59X and it should look like this – https://www.screencast.com/t/APOSJqV4vV
Thanks