Gives a different layout to REAL user and robots-agents

GK User
Tue Dec 06, 2011 8:58 pm
Good day! First, quoting correspondence on the ticket. The ticket was not resolved the issue.
Site http://www.expresspaint.ru

Q.
For this user-agent (SeopultContentAnalyzer/1.0) - seopult.ru website expresspaint.ru gives a different layout, it's logo instead of the link to the home, enclosed in h1 ('Мастерская по иконописи, обучению, реставрации икон и росписи стен')

The template has been edited under your leadership. Could something else be done?

A.
Hi. Can you explain more or send result for this agent?

Q. Agent reply -
header - http://narod.ru/disk/33548297001/headers.txt.html
user-agent - http://narod.ru/disk/33548275001/1.txt.html

A.
In all our templates we have logo enclosed in h1 which redirect you to home page.

Q.
I asked your help to change the template, because the Russian search engines (for example, Yandex.ru) do not perceive correctly the same h1 header on all pages of the site. It turns out that the h1 header for the logo is derived from the title of the site, and this for Yandex.ru is unacceptable.

If you do not satisfy the search engine that ranking site for many queries in the search for is not (unfortunately this fact to yandex.ru)

A.
If you want to change it you need to edit \templates\gk_coffe\layouts\blocks\logo.php

Q.
My logo.php - http://narod.ru/disk/33548315001/logo.php.html

A.
I guess that searching robots remember erlier settings and you need to wait some time.

A. Unfortunetly I can't help you. I told you where this h1 is in source code.

And so it had to dig and that's what happens.

In FreeBSD command - # fetch -o - http://www.expresspaint.ru/ > ep.html

Here the file that results from this command - http://narod.ru/disk/33548982001/ep.html.gz.html
This file contains the string -
<h1 id="gkHeader">
<a href="/./">Мастерская по иконописи, обучению, живописи, реставрации икон и росписи стен</a>
</h1>
A string that is a reference <a href="/./">Мастерская по иконописи, обучению, живописи, реставрации икон и росписи стен</a> - is a site title.
In FireBird is great, but robots and agents of the search engines and analyzers read the website is absolutely wrong! Man sees one, and robots systems - completely different. In this way, you can easily get to the sanctions of search engines. And it's not just the search engine Yandex.

Next on the file - the headlines are in the tags h2. In reality, these tags h1 - Look at FireBirds.
User avatar
Expert Boarder

teitbite
Sat Dec 10, 2011 1:28 am
Hi

What's the problem ? If You do not need H1 for logo, than remove it form code replacing:

Code: Select all
<h1 id="gkHeader">
<a href="/./">Мастерская по иконописи, обучению, живописи, реставрации икон и росписи стен</a>
</h1>


to

Code: Select all
<a href="/./">Мастерская по иконописи, обучению, живописи, реставрации икон и росписи стен</a>


and change all classes refering to H1.logo to point to this new <a> tag.


Unfortunately this is a customization issue and I cannot help more.
User avatar
Moderator

GK User
Sat Dec 10, 2011 9:38 am
What files do change?
One file is attached to the previous post.
User avatar
Expert Boarder

GK User
Sat Dec 10, 2011 10:14 am
The problem still is that all the other titles also incorrectly labeled (h1 changed to h2 and so on).
User avatar
Expert Boarder

GK User
Sat Dec 10, 2011 6:09 pm
Lord, who is in our living? How to fix the problem? Why a website in FireBug, but when you access other search engines? How to fix the situation? What you need to change the template?
User avatar
Expert Boarder

teitbite
Sun Dec 11, 2011 4:37 pm
Hi

You've mentioned the code so I thought You already know where to find it. It should be /layouts/blocks/logo.php . CSS I'm not sure, but probably template.css around lines 46 - 54
User avatar
Moderator

GK User
Sun Dec 11, 2011 5:15 pm
This is code from template.css -
Code: Select all
/* Containers */
#gkHeaderModule1 { float: left; }
#gkHeaderModule2 { float: right; }
#gkMain,
#mainPage { margin-bottom: 23px; }
#bottomWrap { padding-top: 5px; }
#bottomWrap > div { border-top: 1px dashed #dad6ce; padding-top: 16px; }

#gkMainbody { background: transparent url('../images/style1/white_bg.png') repeat 0 0; padding: 8px 0!important; }
#gkMainbodyWrap { border: 1px dashed #d3cbb9; margin: 0 8px; padding: 12px; }
/*#gkComponentWrap { margin-top: 23px!important; }
#gkComponentWrap:first-child { margin-top: 0!important; }*/

/* Logo */
#gkPageTop { display: table; padding: 0!important; }
#gkPageTop.marginTop { margin-top: -30px; }
#gkPageTop>span { display:table-cell; background: url('../images/style1/top_lines.png') no-repeat right -100px; height:96px; width:50%; text-indent:-999em; }
#gkPageTop>span:first-child { background-position: left 25px; }
#gkPageTop div { display:block; height:96px; display:table-cell; white-space:pre; }

.gkLogo { height: 96px; width: 192px; margin: 35px 0 0; font-size: 180%;line-height: 100%; }
div.gkLogo.text { width: auto; margin: 0; }
div.gkLogo.text a,
div.gkLogo.text .gkSiteSlogan { display: block; background:none!important; color: #fff; font: normal 48px/76px Georgia, serif; font-style: italic; text-indent: 0; color: #433a31; text-align: center; }
div.gkLogo.text a { padding: 0 16px; width: auto!important; }
div.gkLogo.text .gkSiteSlogan { font-size: 12px; line-height: 10px; margin: -74px 0 18px 0; }
div.gkLogo { margin-top: 0; }
div.gkLogo a { background: url('../images/style1/logo.png') no-repeat 0 0; display: block; height: 96px; margin: 0; text-indent: -999em; width:192px; }


This is code from /layouts/blocks/logo.php
Code: Select all
<?php

// No direct access.
defined('_JEXEC') or die;

?>

<?php if ($this->getParam('logo_type', 'image')!=='none'): ?>
<span>---</span>
<?php if ($this->getParam('logo_type', 'image')=='image'): ?>
<div class="gkLogo">
   <a href="./" title="<?php echo $this->getPageName(); ?>"><?php echo $this->getPageName(); ?></a>
</div>
<?php elseif($this->getParam('logo_type', 'image')=='text') : ?>
<div class="gkLogo text">
    <a href="./">
       <span><?php echo $this->getParam('logo_text', ''); ?></span>
       <small class="gkLogoSlogan"><?php echo $this->getParam('logo_slogan', ''); ?></small>
    </a>
</div>
<?php endif; ?>
<span>---</span>
<?php endif; ?>


My logo.php here - http://narod.ru/disk/33548315001/logo.php.html
Where to look? As I see the files fine. What files are still responsible for this conclusion? Can headers.php?
User avatar
Expert Boarder

teitbite
Sun Dec 11, 2011 6:17 pm
Hi

Please do not use this narod.ru site to send me the files. I do not know Your language so I have no idea how to get it.

I can see You've already removed the H1 from logo, so now just show me Your page.
User avatar
Moderator

GK User
Sun Dec 11, 2011 6:37 pm
The H1 from logo removed long ago :)
In FreeBSD command - # fetch -o - http://www.expresspaint.ru/ > ep.html
This file is - http://www.expresspaint.ru/ep.html.gz
Front page of site - http://www.expresspaint.ru
How else do you show the page? :)
User avatar
Expert Boarder

teitbite
Mon Dec 12, 2011 2:55 pm
Hi

H1 issue is solved than. I can see on Your page that logo is displaying ok. So what's the problem ? Sorry I thought we were still talking about this H1 issue.
User avatar
Moderator

GK User
Mon Dec 12, 2011 7:30 pm
You can see this file -http://www.expresspaint.ru/ep.html.gz ?
This is what search engines see. And this is different from what he sees FireBug. Differs including the headers. Take a look and understand what is at stake.
User avatar
Expert Boarder

teitbite
Tue Dec 13, 2011 4:57 am
Hi

How You came up with this ? Where can I check search sites see it. Acctualy this is a mobile template. When I will know where You had found it than I'll know what is wrong that search engines sees this page.
User avatar
Moderator


cron