Shape 5

Wordpress Club Themes => Paradigm Shift - Club => : elliottben January 23, 2014, 01:02:23 PM



: Yoast SEO Plugin Doesn't work
: elliottben January 23, 2014, 01:02:23 PM
I'm using Yoast SEO to change my site's title tags, but no matter what they come up as 'page name' [on] 'site name'
http://triadtestsite.com/first-ohio/contact-us

I found the file where this is happening: /wp-content/themes/s5_paradigm_shift/vertex/cms_core_functions.php

But I'm not sure how to fix it. I changed themes and the titles displayed correctly, so I think this is an issue with the Shape5 theme.

Please check and let me know how to get custom page titles to show up.

Thanks


: Re: Yoast SEO Plugin Doesn't work
: Tristan Rineer January 24, 2014, 09:20:28 AM
I am working on a patch that I hope to have finished this week and I will see what I can do about restoring the "default" WP head meta for it.


: Re: Yoast SEO Plugin Doesn't work
: elliottben January 24, 2014, 10:00:56 AM
Thanks. Please let me know if you find a solution for this.


: Re: Yoast SEO Plugin Doesn't work
: Tristan Rineer January 27, 2014, 08:57:35 AM
I will post to the Wordpress FAQ (http://www.shape5.com/component/option,com_smf/Itemid,75/topic,23923.0/) as soon as the patch is ready.


: Re: Yoast SEO Plugin Doesn't work
: elliottben February 07, 2014, 11:14:49 AM
Hi Tristan,

Have you made any progress on this? We're getting close to going live with the site and this SEO issue is one of the last items holding us back.

Thanks,
Elliott


: Re: Yoast SEO Plugin Doesn't work
: Tristan Rineer February 07, 2014, 04:16:49 PM
I still haven't sorted out what needs to be changed to improve that compatibility, but the function that defines the header meta is s5_head_call() in /vertex/cms_core_functions.php.

If you figure out a good way to make it work, post it back here, and I'll include it in the next framework update.


: Re: Yoast SEO Plugin Doesn't work
: elliottben February 13, 2014, 04:46:23 PM
Ok. I fixed it. Here is the fix for other people who are having this issue:

- Open file /wp-content/themes/s5_paradigm_shift/index.php
- Add the line
:
<title><?php wp_title(''); ?></title>
directly beneath the head tag

- Open the file  /wp-content/themes/s5_paradigm_shift/vertex/cms_core_functions.php
- In the function s5_head_call comment out the part that is adding the title tag:
:
/*
$header_html = '<title>';
if(strlen(get_post_meta($post->ID, '_s5_outer_title', true) >= 2)){
$header_html .= get_post_meta($post->ID, '_s5_outer_title', true).' on ';}
elseif(is_home() && strlen(s5_get_option('xml_s5_blog_heading')) >= 2){
$header_html .= s5_get_option('xml_s5_blog_heading').' on ';}
else{$header_html .= the_title('',' on ',false);}
$header_html .= get_bloginfo('title');
$header_html .= '</title>';
*/

remove the period from the next line so that the variable $header_html starts fresh:
:
$header_html .= '<meta http-equiv="Content-Type" content="text/html; ';
to
:
$header_html = '<meta http-equiv="Content-Type" content="text/html; ';

Save files and you're done.


: Re: Yoast SEO Plugin Doesn't work
: Tristan Rineer February 14, 2014, 02:23:29 PM
Thanks!  I'll make the changes to the framework.  I'll have to alter the process so it doesn't require an edit to the index, but I think I've already got an idea.