-
Author
-
March 1, 2015 at 14:22 #48244giorgosParticipant
Title tags for buddypress pages are incorrect. See also demo. The only ones are set ok are for the rtmedia pages.
How can we set the title tags set by buddypress? for exampleNow it saws this one:
<title>- Kleo Template</title>
instead of this:
<title>Youth Team | members | Groups | Kleo Template</title>March 2, 2015 at 16:28 #48372RaduModeratorHave you tried this plugin ?
https://yoast.com/wordpress/plugins/seo/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.March 2, 2015 at 16:37 #48375sharmstrModerator@radu, can you talk to abe about this? The title displays correctly using the 2014 or 2015 themes. I dont think people should have to install anything to make it work with Kleo. Just my opinion.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
March 3, 2015 at 17:14 #48559giorgosParticipantI’m using WordPress SEO, but its titles are messed up for BP. See example http://www.applesocial.net/members/gk/
Title presented is just an article from the blog for all member/group pages??March 3, 2015 at 17:49 #48564RaduModeratorHello,
This issue will be fixed on the next update.
Sorry for any inconvenience
Thank you for your understanding
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 3, 2015 at 20:20 #48591giorgosParticipantIs there any temp workaround in order to satisfy SEO? Having all BP pages showing as title the title of a blog page is not really google friendly. Next release might take a while.
I also noticed than when deactivating woocommerce the title of the blog page that goes to BP pages is gone.
March 4, 2015 at 13:39 #48736giorgosParticipantThe issue is on individual BP pages only and not on main dir pages (/members, /groups)
March 5, 2015 at 01:43 #48803AndreiModerator@Radu , @sharmstr , as you can read in the following page, the problem is generated by an incompatibility between WordPress SEO plugin and buddypress, and there’s nothing wrong in the theme.
https://buddypress.org/support/topic/buddypress-2-2-1-incompatible-with-yoast-seo-botched-page-titles/From the given solutions out there ( as how this incompatibility issue is an older subject out there ), I found the following code to work.
@giorgos , please add the following piece of code in your functions.php file.COPY CODE/** * Fix wpseo title */ add_filter('wpseo_title', 'buddypress_wpseo_title'); function buddypress_wpseo_title($title) { $wpseo = WPSEO_Frontend::get_instance(); $separator = $wpseo->options['separator']; $separator_options = array( 'sc-dash' => '-', 'sc-ndash' => '–', 'sc-mdash' => '—', 'sc-middot' => '·', 'sc-bull' => '•', 'sc-star' => '*', 'sc-smstar' => '⋆', 'sc-pipe' => '|', 'sc-tilde' => '~', 'sc-laquo' => '«', 'sc-raquo' => '»', 'sc-lt' => '<', 'sc-gt' => '>', ); if (array_key_exists($separator, $separator_options)) { $separator = $separator_options[$separator]; } $bp = buddypress(); if (bp_is_user()) { $title = bp_get_displayed_user_fullname() . ' | ' . ucfirst($bp->current_component); } elseif (bp_is_group()) { $title = bp_get_current_group_name() . ' | ' . $bp->bp_options_nav[$bp->groups->current_group->slug][bp_current_action()]['name']; } return $title . ' ' . $separator . ' ' . get_bloginfo(); }
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 5, 2015 at 08:39 #48815giorgosParticipant@Andrei Thanks!! That did the trick. I believe this is the only code out there that solves the well known BP compatibility issues with Yoast’s SEO plugin.The one I used (on bp-custom.php) stopped working, therefor I assumed that was a theme issue.
Much appreciate your help on this.September 12, 2016 at 01:42 #135761eric75ParticipantThis seems to be the solution:
https://buddydev.com/buddypress/making-wordpress-seo-plugin-compatible-with-buddypress-part-2/
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.