Tagged: H1, page titles
Hi,
I am sorry, we need more context info.Which titles are you referring to? Are you using a custom theme or the default one? Is it happening on WordPress posts/pages or BuddyPress?
Please share more details to help us assist you better.
Regards
BrajeshActually, I just got this php snippet below, and it does change the page titles, but unfortunately, it also changes the menu items too as you can see in this screenshot: https://workdrive.zohoexternal.com/file/7p7yf3b5bbccb90114c8ab9c0892480461609.
Any ideas about how to edit it so the menu items aren’t changed?
—-
function change_page_titles_to_h1($title) {
// Check if it’s a single page or post
if (is_single() || is_page()) {
$title = ‘<h1>’ . $title . ‘</h1>’;
}
return $title;
}
add_filter(‘the_title’, ‘change_page_titles_to_h1’);
This is a bad idea.
My suggestion is to find what is causing the issue. It is not caused by BuddyPress.If you are able to locate the source of issue, you can reach out to the developers for a proper solution.
Regards
Brajesh
You must be logged in to reply to this topic.