position of the Title tag in sourcecode

GK User
Mon Jun 01, 2015 11:34 am
Hi,
Is there a way to place the Title tag at the beginning of the head section in source code ?
Google indicates this important tag should be placed at the very beginning of the head section
and I can see every website having the title tag just after <head> have a best ranking than mine despite of their low quality (not responsive, few content, meta not displayed, etc.)
So I'd like to make the test.

I tried to place
Code: Select all
<jdoc:include type="head" />
    <?php $this->layout->loadBlock('head'); ?>
   <?php $this->layout->loadBlock('cookielaw'); ?>

just after <head> in default.php
but Title tag doesn't appears at the beginning like in this example :
<head>
<base href........../>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" ....... />
<meta name="description" ........ />
<meta name="generator" ......../>
<title>........</title>
User avatar
Gold Boarder

GK User
Mon Jun 01, 2015 11:35 am
and the website url : [edited by moderator]
User avatar
Gold Boarder

teitbite
Mon Jun 01, 2015 12:23 pm
Hi

Title in tags is generated by joomla. To be more precise this line of code is responsible for adding lots of them:

Code: Select all
<jdoc:include type="head" />


if You want to change the order of elements being loaded by this function You will have to talk to joomla developers since it's in joomla core files somewhere.
User avatar
Moderator

GK User
Mon Jun 01, 2015 12:41 pm
Ok thanks for your reply
could you please mask the website url in my previous post ?
have a nice day
User avatar
Gold Boarder

teitbite
Tue Jun 02, 2015 8:18 pm
Hi

Your site url removed as requested.
User avatar
Moderator


cron