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

View Replies: View Best Answer
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!