Advertisement:

Author Topic: [solved] Strange ! - Meta Tags are at BODY elements instead of HEAD element.  (Read 2376 times)

onlineservices

  • Newbie
  • *
  • Posts: 22
I am using OSCLASS.  When i checked my site for META TAG ANALYSIS, I found those meta tags generated automatically from Title and description are properly loading in head element, only in default pages and customized pages.

But those meta tags are wrongly loading at BODY Elements for listing pages / posting pages.

How to come out of the issue.

Where i need to modify.
« Last Edit: January 10, 2016, 10:59:35 am by onlineservices »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Strange ! - Meta Tags are at BODY elements instead of HEAD element.
« Reply #1 on: January 10, 2016, 12:09:46 am »
Hi,

Weird... What theme are you using? ???

Regards

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Strange ! - Meta Tags are at BODY elements instead of HEAD element.
« Reply #2 on: January 10, 2016, 12:53:58 am »
I couldn't reach that Analyzer URL (it's giving me 404 error ???), but if you look with your browser at the source code of any Ad view page you'll see that all meta tags are correctly placed at the top, inside the head element, there's none inside the body.

Regards


onlineservices

  • Newbie
  • *
  • Posts: 22
Re: Strange ! - Meta Tags are at BODY elements instead of HEAD element.
« Reply #3 on: January 10, 2016, 07:03:43 am »
Again this analyser URL http://www.seocentro.com/tools/search-engines/metatag-analyzer.html

But I am sure OSCLASSWIZARD theme is the trouble i feel. But even if we change the theme the result will be the same as when we install a theme it use to modify some important files.

I am digging for the cause. If i found the answer i will display here.

onlineservices

  • Newbie
  • *
  • Posts: 22
This issue is solved:

Error Location: main.php and function.php of     /public_html/sitename/oc-content/themes/osclasswizards

I used coffeecup html editor to edit PHP files.

When i edited this before a week, without our knowledge [?] a question mark auto inserted in the beginning of the file. so the meta tag section pulled to BODY element.

the MAIN.PHP locked the metatags in main page and the FUNCTION.PHP locked the metatags in all other pages including posts and listings.

Now after removal of that ? mark this issue is solved.

Thanks to all

Example of the error: You shall find the ? mark before the PHP Open tag. This is a common issue with COFFECUP HTML/PHP  EDITOR

Quote
?<?php
    /*
     *      Osclass – software for creating and publishing online classified
     *                           advertising platforms
     *
     *                        Copyright (C) 2014 OSCLASS
     *
     *       This program is free software: you can redistribute it and/or
     *     modify it under the terms of the GNU Affero General Public License
     *     as published by the Free Software Foundation, either version 3 of
     *            the License, or (at your option) any later version.
     *
     *     This program is distributed in the hope that it will be useful, but
     *         WITHOUT ANY WARRANTY; without even the implied warranty of
     *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *             GNU Affero General Public License for more details.
     *
     *      You should have received a copy of the GNU Affero General Public
     * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
     */

/**

DEFINES

*/

« Last Edit: January 10, 2016, 11:07:42 am by onlineservices »

mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
http://www.seocentro.com/tools/search-engines/metatag-analyzer.html is showing all osclass web sites ;

- No title
- No description

is this correct?
I suppose it is correct, I have sucribed " google alert " about keywords where I am listing...
When my page is crawled, I receive alert email...
In this alert, web URL title, Web sitename and description shown for other pages ( see secreenshoot )....

But for Osclass sites, I do not see title, sitename into GOOGLE alert email....

There is a problem with META of Osclass, but I do not know what