http://schema.org/Person

GK User
Mon Aug 10, 2015 2:11 pm
Hello,

For some reason Google return error regarding "Person name" information from "contact". I try default Joomla template and no error so i believe there is a theme issue.

http://pensiuneacasiana.ro/contact.html
https://developers.google.com/structured-data/testing-tool/?url=http://pensiuneacasiana.ro/contact.html

Thank you !
User avatar
Junior Boarder

teitbite
Tue Aug 11, 2015 1:10 pm
Hi

Please rename /html/com_contact to /html/_com_contact and check if it's showing it ok than.
User avatar
Moderator

GK User
Tue Aug 11, 2015 10:09 pm
Hello,

It is OK now but this new solution generates another problem. Contact page look awful. I changed back because is not a valid solution.

Thank you !
User avatar
Junior Boarder

teitbite
Sat Aug 15, 2015 11:25 am
Hi

It was just a test to tell if problem comes from template. Please send me an access to FTP.
User avatar
Moderator

GK User
Sat Aug 15, 2015 12:32 pm
Check the PM !
User avatar
Junior Boarder

teitbite
Tue Aug 18, 2015 7:09 pm
Hi

Please add this to override.css and make sure override is enabled in tempalte settings:

Code: Select all
.gkEventInfo img {
    max-width: 100%;
}
User avatar
Moderator

GK User
Tue Aug 18, 2015 7:17 pm
Done, but is not working !
User avatar
Junior Boarder

teitbite
Tue Aug 18, 2015 7:36 pm
Hi

Sorry, that was an answer to a different question. In Your case I see that name tag is attached to page header, so to have this tag used in contact page header needs to be enabled. But You You do not want it You can just add this to /html/com_contact/contact/default.php

Code: Select all
   <?php if ($this->contact->name && $this->params->get('show_name')) : ?>
      <div class="page-header">
         <h2>
            <?php if ($this->item->published == 0) : ?>
               <span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
            <?php endif; ?>
            <span class="contact-name" itemprop="name"><?php echo $this->contact->name; ?></span>
         </h2>
      </div>
   <?php endif;  ?>
User avatar
Moderator

GK User
Tue Aug 18, 2015 8:00 pm
I am not sure where i supposed to add this lines ? I know the file but where in file ?
User avatar
Junior Boarder

GK User
Tue Aug 18, 2015 8:08 pm
I drunk another glass of beer and i realized where to put that code and is working now.

Thank you !
User avatar
Junior Boarder

teitbite
Sun Aug 23, 2015 9:14 am
Hi

Sorry for not specifying that. Practically every place over the address is ok. But best to replace the title You have there now:

Code: Select all
     <?php if ($this->params->get('show_page_heading', 1)) : ?>
     <header class="component-header">
          <h1><?php echo $this->escape($this->params->get('page_heading')); ?></h1>
     </header>
     <?php endif; ?>
User avatar
Moderator

GK User
Mon Aug 24, 2015 11:56 pm
Hello,
I just added there and is ok. No other line was removed.
Regards
User avatar
Junior Boarder

teitbite
Sat Aug 29, 2015 2:28 pm
Hi

Ok, good to know. Glad I could help with this. Thread closed.
User avatar
Moderator


cron