Webmaster Sun Login
Not a member yet? Sign up

Wordpress canonical URL without plugin?

  • HOME
  • FORUMS
  • BLOGS
  • MARKETPLACE
  • ADVERTISING
  • SPECIAL OFFERS
  • WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 3 of 3
    Stick this thread
  1. #1
    Join Date
    Jul 2012
    Posts
    389
    Thumbs Up/Down
    Received: 4/0
    Given: 56/0
    Thanks
    95
    Thanked 23 Times in 22 Posts

    Wordpress canonical URL without plugin?

    I understand how to use canonical urls on a static HTML based site, but I don't understand where to include these URLs on a WordPress based site. I researched and found a few plugins to do this but it it possible for me to only have access to the files of my theme? so I'm a bit lost as to how to access the head tags for those URLs to input the code. Can you guys shoot me a guide?

  2. #2
    Join Date
    Feb 2018
    Posts
    4
    Thumbs Up/Down
    Received: 1/0
    Given: 0/0
    Thanks
    1
    Thanked 0 Times in 0 Posts
    <link rel="canonical" href="https://mysiteurlDOTcom<?php echo $_SERVER['REQUEST_URI'];?>">

    1. Login to WordPress
    2. Hover over Appearance
    3. Click Editor
    3. Find Theme Header (header.php)
    5. Add the Universal PHP Code for Canonical URLs found above within the HEAD section of your theme header file.

  3. #3
    Join Date
    May 2014
    Location
    India
    Posts
    1,020
    Thumbs Up/Down
    Received: 234/4
    Given: 117/2
    Thanks
    28
    Thanked 96 Times in 85 Posts
    I think that we all need an SEO plugin for our WordPress blog. Hence most of the SEO plugin comes with features like Canonical URL. Adding it manually to theme header file can be risky as when you update your theme files it will be removed and you have to put it again. You can use Yoast SEO plugin. Works great for me.
    Check out my blog @ Technobyet.com

Newer Threads

  1. Nemanja
    juliaann
    Replies: 3 | Views: 542
    Last post by juliaann, 11-14-2018, 04:21 AM
  2. Nemanja
    jon99
    Replies: 5 | Views: 1026
    Last post by jon99, 07-12-2018, 05:38 AM
  3. Cheer
    Marc van Leeuwen
    Replies: 3 | Views: 367
    Last post by Marc van Leeuwen, 01-10-2018, 08:50 AM
  4. hgonzales2
    Ged
    Replies: 1 | Views: 348
    Last post by Ged, 03-17-2018, 08:01 PM
  5. Adied
    paul1129
    Replies: 2 | Views: 447
    Last post by paul1129, 01-13-2018, 02:48 PM

Older Threads

  1. Jack London
    Hugo E.
    Replies: 11 | Views: 1067
    Last post by Hugo E., 10-15-2018, 04:22 AM
  2. Jack London
    paul1129
    Replies: 2 | Views: 442
    Last post by paul1129, 01-13-2018, 02:15 PM
  3. Naksh
    sanusense
    Replies: 9 | Views: 1114
    Last post by sanusense, 02-21-2018, 06:57 AM
  4. jennypitula
    jennypitula
    Replies: 0 | Views: 318
    Last post by jennypitula, 01-03-2018, 06:11 AM
  5. Crewscaptin
    paul1129
    Replies: 2 | Views: 492
    Last post by paul1129, 01-15-2018, 02:21 PM

Latest Threads

  1. itarachiu
    itarachiu
    Replies: 2 | Views: 54
    Last post by itarachiu, Yesterday, 06:43 AM
  2. romanalexeevich198
    Where can I sell vector icons?
    By romanalexeevich198 in forum Graphic Design
    romanalexeevich198
    Replies: 0 | Views: 50
    Last post by romanalexeevich198, 01-19-2019, 02:46 PM
  3. denverdonate
    404 errors and a site's performance
    By denverdonate in forum Google
    denverdonate
    Replies: 0 | Views: 39
    Last post by denverdonate, 01-19-2019, 12:42 PM
  4. denverdonate
    denverdonate
    Replies: 0 | Views: 57
    Last post by denverdonate, 01-19-2019, 09:17 AM
  5. Fixfast
    johnmart
    Replies: 2 | Views: 63
    Last post by johnmart, Today, 12:56 PM

Similar Threads

  1. Neonnidhi
    Thomas
    Replies: 12 | Views: 2190
    Last post by Thomas, 03-24-2016, 04:58 PM
  2. wellwisher
    TheProgrammer
    Replies: 12 | Views: 3162
    Last post by TheProgrammer, 08-24-2015, 02:39 AM
  3. jatinder
    rwsorensen
    Replies: 3 | Views: 1308
    Last post by rwsorensen, 05-07-2015, 12:08 PM
  4. fraxool
    johnnleo
    Replies: 10 | Views: 3504
    Last post by johnnleo, 09-26-2014, 04:53 PM
  5. jdunhin
    Holly Nicole
    Replies: 1 | Views: 1221
    Last post by Holly Nicole, 03-08-2013, 02:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Internet Marketing Forum

Webmaster Sun is a forum where you’ll find in-depth discussions and resources to help you succeed on the web whether you are new or experienced. You’ll find it all here. With topics ranging from internet marketing, search engine optimization, social networking, make money online, web hosting, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Come Hang Out With Us

    Facebook Twitter Webmaster Forum Google+

    Webmaster Sun Logo
Copyright ©2012 - 2019, WebmasterSun.com. All rights reserved. Internet marketing forum for internet marketers, webmasters, web hosting providers, designers and affiliate marketers.

Welcome to Webmaster Sun

The World's Number 1 Webmaster Community, SEO and Marketplace

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!