Support Forum

Dupicate Titles

43 Answers

New Answer

JM James Mueller
James Mueller
Member

OG, yea. I remember our developer changing those to Jetpack… thanks, I’ll get that corrected.

“““““““““““““““

Followed your instructions. We now have this:

function my_canonical_exclude( $canonical ) {
        global $post;
        if ( $post->ID == 11974 ) $canonical = false;
        return $canonical;
    }
add_filter( ‘wpseo_canonical’, ‘my_canonical_exclude’ );

add_action(‘sph_forum_startup’, ‘do_my_title_filter’);
function do_my_title_filter() {
    remove_filter(‘wp_title’, ‘sp_setup_browser_title’, 99, 3); # want it to run last
    add_filter(‘wp_title’, ‘sp_setup_browser_title’, 16, 3); # want it to run last
}

?>

Still no titles. (I did clear my cache, etc.)
Would you like FTP access?

 

MP Mr Papa
Mr Papa
Member

what do you mean no titles??  I see unique titles on forum pages now…  its only the topic title but that is what you have it set to be on forum – components – seo…

seems working fine now…

JM James Mueller
James Mueller
Member

Are we looking at the same site?

— Home Page – No Title  http://screencast.com/t/oX4b58di

— Topic Index – No Title http://screencast.com/t/mcS9zU1b

However, If I drill-down to the post level, there *is* a title:

— http://screencast.com/t/Vi4y8eqge

Are you saying it is acceptable to *not* display titles in the first two examples?

MP Mr Papa
Mr Papa
Member

did you look at your seo options like I said???? 

you are explicitly excluding page name and forum name from the title… so if you are on main forum page (group view) or a specific forum page (forum view),  you wont get a title…  you do get a title on the topic view because you are including the topic title…

JM James Mueller
James Mueller
Member

Steve, sorry, didn’t see your previous comment.

Looks good.

Thanks for sticking with me.

MP Mr Papa
Mr Papa
Member

Np.. Happy to help… Worthwhile for me to as wp seo has just changed the priority of their title hook… Hence the change from 10 to 16…

This title filtering is a moving target as plugins and themes are constantly changing it to remain told dog…

JM James Mueller
James Mueller
Member

So, this morning our Moz report showed 1,700+ pages ‘missing titles’ …

Please see: http://www.growth trac dot com/marriage-forums/resolving-conflict/continual-friction/

** broke up the url because Google has a habit of indexing these.

Note the title text is displaying in the upper left.

Same with our home page : http://www.growth trac dot com/marriage-forums/

Trust me: I have changed nothing since our last chat.

What is my next step? Thanks Steve.

EDIT

Correction: Our developer has made changes since then, however he has not made changes to the forums.

MP Mr Papa
Mr Papa
Member

sorry, but something changed…  no recent genesis updates either…  according to wp seo change log, no updates near this area either…

genesis title at top is here:  https://simple-press.com/support-forum/sp5-general-topics/forum-topic-title-showing-at-top-of-page/#p129907

I would re-verify all the changes from this thread and make sure they are still good…  I do note you are running our default wp theme…  we have always recommended making your own theme in case you updated our theme where you would lose all your customizations…

JM James Mueller
James Mueller
Member

Resolved.

Both of the functions we added previously to spFunctions weren’t there (see below).
So, wondering if we did an update that over-wrote the file?

Thanks, Steve
Jim

““““““““““““““““

function my_canonical_exclude( $canonical ) {
        global $post;
        if ( $post->ID == 11974 ) $canonical = false;
        return $canonical;
    }
add_filter( ‘wpseo_canonical’, ‘my_canonical_exclude’ );

add_action(‘sph_forum_startup’, ‘do_my_title_filter’);
function do_my_title_filter() {
    remove_filter(‘wp_title’, ‘sp_setup_browser_title’, 99, 3); # want it to run last
    add_filter(‘wp_title’, ‘sp_setup_browser_title’, 16, 3); # want it to run last
}

““““““““““““““““

?>

MP Mr Papa
Mr Papa
Member

Which is exactly actuly what I said and why we say create your own theme for changes… Incidentally, there are no auto upgrades… They have to be manually initiated…

So you need to remake your changes….

JM James Mueller
James Mueller
Member

Right. I wasn’t implying there was an auto-update.  I was trying to remember if I did a manual update sometime after 03-01.  Apparently that’s the case.

MP Mr Papa
Mr Papa
Member

sorry, wasnt being accusatory, just passing along info…  have you remade the changes?

and created your own theme? ;)

JM James Mueller
James Mueller
Member

Steve, I’m a little lost when you suggest I should ‘create my own theme’ … don’t know the benefits of that. Regardless, wouldn’t I still need to make a fix to spFunctions after each update?

MP Mr Papa
Mr Papa
Member

No… once you make your own theme (copy one of ours as starting point) then yours will not be overwritten during updates and will continue working… 99% of our theme updates will be for new functionality and we feverishly work to maintain backwards compat so that your personal theme will continue to work with new releases of simple press… if there is new functionality added to simple press, you may need to add a new template tag to your theme to take advantage of that functionality, but that is consistent to how wp and its themes work…

to create your own theme, see: http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/

its really simple and just involves copying one of ours and renaming it… then you have your own theme…

every release we make, if there are any theme modifications, we create a page in our codex and detail those changes so you could make the same ones if you want to yours… but again, for the overwhelming vast majority of times, you do not need to make any modifications to your theme for it to continue working with the new simple press… if those rare occasions do pop up, its almost always because of a core wp change that forces it…