wp-useronline
wp-useronline copied to clipboard
A space is missing between title and category. The guillemet symbol is also missing. »
I can see the » (»
) mark is used with some links but others are missing as well as the space. The site title connects to the category.
You can see what I mean here: https://hokkaido.a4jp.com/useronline/
Anyway of adding the » mark between the site title and category name so they aren't touching? Also if a page is missing the space is also missing from the $page_title.
Do we have to edit the wp-useronline/core.php file to fix this around line 195 or the wp-useronline/template-tags.php file? I'm just searching for $page_title at the moment.
@lesterchan Line 187 of the core.php file was updated with the code below. It will take time for each entry to update and disappear before the new results start showing up though. Can you add this to the plugin please?
private static function get_title() {
if ( is_admin() && function_exists( 'get_admin_page_title' ) ) {
$page_title = '' . __( 'Admin', 'wp-useronline' ) . '' . get_admin_page_title();
} else {
$page_title = wp_title( '', false );
if ( empty( $page_title ) )
$page_title = '' . strip_tags( $_SERVER['REQUEST_URI'] );
elseif ( is_singular() )0
$page_title = '' . $page_title;
}
$page_title = get_bloginfo( 'name' ) . ' » ' .$page_title;
return $page_title;
}
I removed » from some parts and just put it where it should be.
Can send a pull request?