wp_title() in the body of my theme to print out the page title name at the top of the page, way before the content. This unfortunately also prints out the site name, which is redundant in my use case.
Essentially I'm going for this to be dynamic on each page:
Site Name >> Page Name
Site Name >> Page NameSite Name
I modified the filter built into my boilerplate theme adjusting this:
// Otherwise, let's start by adding the site name to the end: $title .= get_bloginfo( 'name', 'display' ); // If we have a site description and we're on the home/front page, add the description: $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $separator " . $site_description;
But this unfortunately also removed it from the
<title> attribute in my
is there a way I can modify this filter to only do a certain action when it's in the body of the page?