Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Tags SEO


Jack_mcs

Recommended Posts

 

This addon wouldn't affect the favicon. Depending upon how you had it installed, you must have overwritten its code in index.php, includes/header.php or includes/template_top.php, depending upon your version of oscommerce.

I didn't change any code or  added any code in the files you mentioned. The favicon was there out-of-the-box. Now it's gone.

 

You may have a look at this:

http://www.oscommerce.com/forums/topic/403421-favicon/

 

BTW - I'm running two other (identical) shops without Header Tags SEO. The favicon is just in the root and shows up there.

 

Therefore I doubt that the addon does not affect the favicon.

Link to comment
Share on other sites

To display a favicon, you need to add a meta tag to the <head> section of the site. That meta tag will have a path to the image to be displayed. Most shop owners tend to put it in the root but that is not a required location. But those two things are all that is needed. This addon also makes changes to the <head> section so, most likely, when you made that change you overwrite the meta tag for the favicon. Or, you may have a module in admin that controls it and maybe that was turned off for some reason.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I didn't change any code or  added any code in the files you mentioned. The favicon was there out-of-the-box. Now it's gone.

 

You may have a look at this:

http://www.oscommerce.com/forums/topic/403421-favicon/

 

BTW - I'm running two other (identical) shops without Header Tags SEO. The favicon is just in the root and shows up there.

 

Therefore I doubt that the addon does not affect the favicon.

 

 

There is a good favicom generator and checker here.

 

Not only will it check that you have one on your site, it will also generate all the favicons needed by various os systems and devices.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

At its most basic, all you need is an "icon" format 16x16 or 32x32 image named favicon.ico, located in the site root. That does not require a <meta> tag in the <head>. If you want to name the favicon something else, store it someplace other than the root, or use a different format, you will need a <meta> tag. By any chance are you using a non-standard (not /favicon.ico) favicon, and on some pages the <meta> tag specifying it has gotten messed up or lost? Or do you have a <meta> tag (necessary or not), but it's pointing to the wrong place on some pages? Be sure to carefully check those.

 

The "favicon" generators mentioned in several posts go beyond the standard browser favicon, and include device-specific application icons that really aren't favicons in the strict sense. They just appropriated the name, for better or worse. Possibly some phones, etc. will not use a standard favicon for a bookmarked page, and need proprietary format icons for that purpose. This is unfortunate -- what site owner wants to maintain dozens of different icons for use on multiple phones?

Link to comment
Share on other sites

@@MrPhil I said meta tag but I meant a link tag. While it is not required, it is possible for the search for the favicon to be overridden by a browser so, in my opinion, it should always be included. Plus, I prefer to keep all of my images in the images directory and the link is the only way to accomplish that.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@@Jack_mcs,

 

IMVHO - while I'm running two identical live shops OsC 2.3.4 without Header Tags SEO are showing the favicon, and the one with Header Tags SEO implemented does not, I don't think that it's making sense to move this thread (or open a thread) to general.

 

Maybe it depends on adapting to the german language...

Link to comment
Share on other sites

The favicon isn't affected by this addon. If the favicon isn't working in a shop with this addon installed, you have either made a mistake in the installation or the favicon is not installed correctly. Both are beyond the scope of this support thread so I can't offer anymore than I have already done.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

@@Jack_mcs,

 

this is how the header tags are looking on my site:

 

<!DOCTYPE html>
<html dir="ltr" lang="de"<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xxx</title>
<meta name="Description" content="xxx" />
<meta name="Keywords" content="xxx" />
<meta http-equiv="Content-Language" content="de" >
<meta name="googlebot" content="all" />
<meta name="robots" content="noodp" />
<meta name="slurp" content="noydir" />
<meta name="revisit-after" content="1 days" />
<meta name="no-email-collection" value="https://XYZ.de" />
<link rel="canonical" href="xxx" >
<meta property="og:site_name" content="xxx" />
<meta property="og:locale" content="de_DE" />
<meta property="og:type" content="website" />
<meta property="og:image" content="" />
<meta property="og:url" content="https://xxx" />

<!-- EOF: Header Tags SEO Generated Meta Tags by oscommerce-solution.com -->

 

Question:

 

<!DOCTYPE html>
<html dir="ltr" lang="de"<head>

 

Is this correct? Or should it look like that:

 

<!DOCTYPE html>
<html dir="ltr" lang="de">

<head>

 

If so, where can this be changed?

Link to comment
Share on other sites

@@MrPhil I said meta tag but I meant a link tag. While it is not required, it is possible for the search for the favicon to be overridden by a browser so, in my opinion, it should always be included. Plus, I prefer to keep all of my images in the images directory and the link is the only way to accomplish that.

 

I did like you suggested and added the code in the template_top.php.

 

There is a good favicom generator and checker here.

 

Not only will it check that you have one on your site, it will also generate all the favicons needed by various os systems and devices.

 

I used the link to generate the icons and the code.

 

Now it works. Thank you for your support.

Link to comment
Share on other sites

<!DOCTYPE html>

<html dir="ltr" lang="de"<head>

 

Is this correct? Or should it look like that:

 

<!DOCTYPE html>

<html dir="ltr" lang="de">

<head>

The placement of <head> doesn't matter but the closing > for the language tag does. That is in template_top.php. You probably overwrote it with the changes.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Jack_mcs,

 

Unfortunately I don't know the reason.

 

A workaround could be to change in header_tags_opengraph.php:

 

// $ogArray['locale']  = str_replace('-', '_', $loc[0]);
$ogArray['locale']  = de_DE;

 

That brings up in the html-output:

 

<meta property="og:locale" content="de_DE" />

 

Does it matter, if it's hardcoded?

 

 

@@Jack_mcs The problem is at the very upper left corner, as I already described. Yes, I know that the default is in English, and yes, I uploaded all files in German directory and made also the changes in the German files.

 

Well, I found out, that commenting out

 

// $ogArray['price'] = $og_price;

 

in the header_tags_opengraph.php may be a kind of workaround. As I'm not a SEO-specialist I cannot tell how important it could be to have a meta property "price"...

 

The real reason could be an altered code in the template_bottom.php.

 

 

The placement of <head> doesn't matter but the closing > for the language tag does. That is in template_top.php. You probably overwrote it with the changes.

 

Shame on me - all above solved by adding the missing closing > in template_top.php.

 

I'm sorry for wasting your time.

Link to comment
Share on other sites

Jack_mcs,

 

checking the pages today leads back to

 

 

A workaround could be to change in header_tags_opengraph.php:

 

// $ogArray['locale']  = str_replace('-', '_', $loc[0]);
$ogArray['locale']  = de_DE;

 

That brings up in the html-output:

 

<meta property="og:locale" content="de_DE" />

 

and

 

 

Well, I found out, that commenting out

 

// $ogArray['price'] = $og_price;

 

in the header_tags_opengraph.php may be a kind of workaround. As I'm not a SEO-specialist I cannot tell how important it could be to have a meta property "price"...

 

Can't tell you why.

Link to comment
Share on other sites

  • 4 weeks later...

I'm using Header Tag SEO for years and it works great but I'm having problems adding a social bookmark icon.

 

Adding the icons is working fine and the icon is showing in header_tags_seo_social.php, an extra field is showing up fine but when I enter an URL in this field and save it and go back to the header_tags_seo_social.php page the icon is again deselected and the field is empty. I want to make an icon for Trustpilot so when a customer presses the bookmark they get the evaluate page for my website.

So no URL and TITLE are needed, just a link (maybe opening in a frame if possible).

 

Can someone give me some help ? 

Link to comment
Share on other sites

You have to enter a URL and TITLE when adding a new icon since the code uses that to setup the link. I've not seen a social site where a url is not needed and am not familiar with Trustpilot so I can't comment on this one.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 2 weeks later...

Is it possible to use just the part of this add-on that handles display of custom descriptions on category pages? We already use other add-ons to handle titles and tags and would not want to reassign those, which could also have a negative effect on our indexing.

Link to comment
Share on other sites

Yes, it would be possible but would require a bit of coding. If all you want is categories descriptions, then there an addon for just that.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

There probably isn't one. The stand-alone category descriptions addon became a waste of time since the main two SEO addons - this one and Header Tags SEO Reloaded - both have that option. You will need to convert the code for that addon so it works with your shop if you want to use it.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...