SEO raport – H2 missing from my site

Posted in: Newspaper
Post count: 11

Hello,

How can I fix this problem? If I change in wp-admin at “function get_title” h2 instead of h3 (I have attached below), all my post titles will be h2 and at SEO check, the raport says that more than 10 of h2 are considered spam by search engines. I want instead of titles to make the categories h2 (or whatever is more appropriate).
Please, I need guidance to solve this problem!
My url page https://www.clubulpentruparinti.ro

Thanks!

PS. daca nu ne intelegem in engleza pt ca nu ma pricep prea tare la povestea asta, pot scrie si in romana… dupa nume, ma gandesc ca sunteti romani :))

function get_title($cut_at = ”) {
$buffy = ”;
$buffy .= ‘<h2 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 .= ‘</h2>’;
return $buffy;

Post count: 22421

Hello,

You can change from a h2 to a h3 or vice-versa for every template in our theme but opnly by altering the theme code. I’m not sure what category you are referring to though. Where do you want it changed? Please provide more details.

Daca doriti sa discutam in Romaneste, va rugam sa ne contactati pe email la adresa contact@tagdiv.com , pentru ca limba oficiala a forumului este limba Engleza.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.