Hreflang Implementation

Permalink
Dear all,

I saw for the hreflang Tags to appear on the sourcecode, you need to add following line to the concrete.php in the config folder:

'multilingual' => [
        'set_alternate_hreflang' => true,
]


but i don't see any change in the sourcecode. do i need to add it somewhere else too?

thanks in advance

 
mlocati replied on at Permalink Reply
mlocati
What concrete5 version are you using?
chriisi replied on at Permalink Reply
Hi mlocati,

sorry for not providing the information from the beginning:
8.3.2

thanks
mlocati replied on at Permalink Best Answer Reply
mlocati
The correct file where the set_alternate_hreflang setting must be saved is /application/config/site.php.

If this file does not exist, you can create it with the following content:

<?php
return [
    'sites' => [
        'default' => [
            'multilingual' => [
                'set_alternate_hreflang' => true,
            ],
        ],
    ],
];
chriisi replied on at Permalink Reply
That worked like a charm!
Thanks a lot!
pixeljunkie replied on at Permalink Reply
pixeljunkie
Hi Michele
How and where can I implement the hreflang tags in version 8.5.2 and above?
Tx
mlocati replied on at Permalink Reply
mlocati