Meta tags problem

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
fermundial18
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Jun 21, 2018 8:22 am

Thu Jun 21, 2018 8:36 am

Hello! I have this php site, and noticed that there's some problems. (wasn't made by me)

If I look at the source code I see 2 </head> closing tags . I suppouse that is wrong.
Besides. all pages in browser shows the same Title, which is wrong.
For instance this page is about Wheater: https://www.bariloche.esp.br/temperatura

But I see in the head section this:

<meta name="Hotéis e Cabanas em Bariloche" content="Turismo em San Carlos de Bariloche Argentina">

And this
<!-- TITLE -->
<title>Bariloche Argentina - Turismo</title>



The website has an admin section where suppousedly I enter the correct meta tags there. But I do not see them showing
see the attachment file screenshot.

In admin, I entered this data:

<meta charset="utf-8">
<title>Previsão do Tempo em Bariloche</title>
<meta name="Clima e Previsão do Tempo em Bariloche" content="O Clima em San Carlos de Bariloche Argentina. Previsão do Tempo">
<meta name="robots" content="index,follow,noodp">
<meta name="googlebot" content="index,follow">

So that weather page should show the title "revisão do Tempo em Bariloche<" instead "Bariloche Argentina - Turismo"

I see there is a folder called "controllers" with a file "temperature.php"
application > views > temperature.php

And other folder with a file "Temperatura.php"
application > controllers > Temperatura.php


How can I fix that? Thanks in advance!
Attachments
ScreenHunter_826 Jun. 21 13.26.jpg
ScreenHunter_826 Jun. 21 13.26.jpg (140.36 KiB) Viewed 197 times

chdevelopment
New php-forum User
New php-forum User
Posts: 3
Joined: Tue Jun 26, 2018 3:28 am
Contact:

Tue Jun 26, 2018 3:36 am

fermundial18,

I would recommend finding the code where the tags are displayed and see if the custom tags from the database are actually pulled to replace the default tags.
At the moment it does not seem to process each individual page's tags.

Post Reply