Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

Canonical Note


  #1  
Old May 22, 2010, 04:50 PM
Larry
 
37 posts · Sep 2009
I just updated one of my sites (finally) from version 3.4.4 to 3.4.9 by downloading the current version zip file, uploading to my server and then switching themes. (zero problems so far)

I noticed there is still a line of previous code in the header.php file to add the canonical tag to pages and posts. Just to let you know, there is no need for this (as far as I can tell) since wordpress version 2.9, as it has been added to the wordpress core. Might as well take it out in the next upgrade.
  #2  
Old Oct 6, 2010, 02:03 PM
jukooz
 
9 posts · Sep 2010
I see it's still there. Since I'm using plugin for "canonicalization", it gives me duplicate canonical tag. I wouldn't have any problem with that, but it gives wrong canonical link. My homepage is static, but I'll be changing content of homepage overtime, so I don't want this particular content to be "canonicalized" as mydomain.com but mydomain.com/this_article. I'm using plugin to have control over that. How to remove it from Atahualpa forever without messing anything?

Last edited by jukooz; Oct 6, 2010 at 02:12 PM.
  #3  
Old Oct 6, 2010, 02:29 PM
Larry
 
37 posts · Sep 2009
Hi jukooz,

the last I checked, it was this line in the header.php which is from the theme adding the canonical tag:
Code:
<?php if ( is_single() OR is_page() ) { ?><link rel="canonical" href="<?php the_permalink(); ?>" /><?php } ?>
If you remove that, Atahualpa won't add it in any more.
  #4  
Old Oct 6, 2010, 02:55 PM
jukooz
 
9 posts · Sep 2010
Thank You. It worked.
  #5  
Old Oct 6, 2010, 02:56 PM
Larry
 
37 posts · Sep 2009
You're welcome. Glad I could help.

Note: You'll have to remove this line of code with each upgrade to Atahualpa as long it it remains in the theme's code.
  #6  
Old Oct 7, 2010, 07:37 PM
jukooz
 
9 posts · Sep 2010
I know. But if Flynn see this topic it probably won't
  #7  
Old Oct 15, 2010, 06:58 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
I removed it for the next version, 3.5.4

Bookmarks

Tags
canonical

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
NOTE: 3.4.8 theme settings not backward compatible juggledad New Versions, & Updating 1 May 8, 2010 12:44 PM
If you installed 3.4.7 please note you must delete a row from the database juggledad New Versions, & Updating 0 May 8, 2010 11:36 AM
A note of thanks gomer Atahualpa 3 Wordpress theme 0 Nov 3, 2009 12:52 PM
Canonical Suggestion Larry New Versions, & Updating 0 Oct 21, 2009 12:03 PM
[SOLVED] Incoming Links (note: wordpress issue) KatyDigg Atahualpa 3 Wordpress theme 5 Sep 27, 2009 12:09 PM


All times are GMT -6. The time now is 01:28 PM.


Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.