WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • Canonical meta-tag
  • Print
Pages: [1]   Go Down

Author Topic: Canonical meta-tag  (Read 15404 times)

Offline Nicky

  • Posts: 94
  • Gender: Male
Canonical meta-tag
« on: February 14, 2018, 09:13:47 PM »
Hello Bakers !

The Canonical meta-tag !

I have been squibbed by G for not having this tag on my pages.

WB-Version
2.10.0
...and using a responsive template.

I wondered if there was a droplet or module which would allow me to edit the <head> on a page-by-page basis so as to insert that tag.
Can I do this with PHP in a code section for each page perhaps?

What do you guys do to solve this canonical issue within WebsiteBaker?

Regards,

N.
Logged

Offline evaki

  • Posts: 2810
Re: Canonical meta-tag
« Reply #1 on: February 14, 2018, 09:27:45 PM »
Is that an option?    Topic: D.C. german only  :-(
Logged

Offline Nicky

  • Posts: 94
  • Gender: Male
Re: Canonical meta-tag
« Reply #2 on: February 14, 2018, 09:40:15 PM »
Thanks evaki,

Sorry, but I'm not a coder. That link contained nothing about the word, "canonical".
Sure, it's a framework to achieve something, but that's all I can fathom.  :-(

Regards,

N.
Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Canonical meta-tag
« Reply #3 on: February 14, 2018, 11:37:57 PM »
This Link may help you
https://en.wikipedia.org/wiki/Canonical_link_element

Dietmar
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline jacobi22

  • Betatester
  • **
  • Posts: 5920
Re: Canonical meta-tag
« Reply #4 on: February 15, 2018, 12:55:26 AM »
First you have to know the sense of a canonical link (see WIKI-Link of Luisehahne). It is not recommended to have your own canonical on every single page if you have structured contents.
The page with the canonical-link is practically the main page of the respective topic. The best example is the start page of a picture gallery, if it has several pages and a lot of pictures.
Here each gallery page would get the canonical link to the gallery homepage, but not one of its own.
In the index. php of the DefaultTemplate above is a quite simple example that can work if the contents of your website match.
If no such general solution is needed, it may be possible to use a droplet. However, this droplet has to be integrated manually on each subpage, e. g. in a Wysiwyg or Code² section and can, as for example in the case of the picture gallery, link to the same main page on each of these subpages.
As an example
I have a gallery with 5 subpages about holidays from 5 different years and an introduction. Here I add a Canonical to the introductory page of each gallery and the introductory page itself also has the same Canonical.

You can find this droplet in the attachement. Use the Import-Function from the Droplet to add this droplet and dont forget to set it to "active"

Translated with www.DeepL.com/Translator
Logged

Offline Nicky

  • Posts: 94
  • Gender: Male
Re: Canonical meta-tag
« Reply #5 on: February 15, 2018, 08:52:37 PM »
Thanks for helping me Jacobi22,

That droplet works like a charm.   :-D

And is, EXACTLY what I was looking to achieve!

The canonical droplet in particular, helped me on a page where I had the reservations calendar module installed.

And thanks to you and those who developed and tested it.

Dietmar, thanks for your info. also.

Regards,

N.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • Canonical meta-tag
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2