Inserting page title with php hook - detects wrong title on blog page

Hi there,

I have modified the header to insert the page title using <?php the_title(); ?>

Doing this on the blog page displays the title of the first post, in stead of the blog page title.

https://bit.ly/2XHfiPn

I have discovered that using <?php wp_title(); ?> does seem to work but it does not always use the title that I have given the page. For example the “Shop” page has the title of “Products”.

How can I ensure it always displays MY page title?

Also, it inserts a » symbol before the title. How can I get rid of this symbol?

Hello,

It doesn’t look like a theme issue, so I kindly suggest you to use the WordPress dot org support forums to find a solution, here is the link:
https://wordpress.org/support/forums/

Hope for your understanding.

Kind Regards, Roman.
aThemes Support