Jump to content

header.tpl concern


Recommended Posts

Next question:

 

I just noticed (when I do a "view source" from my browser) the meta descriptions and meta keywords are missing.

 

When I add to header.tpl as a test the following code:

<meta name="keywords" content="test" />

 

Nothing happens happens in the source.

 

Comparitively, when I enter the following code examples in header.tpl:

<title>TEST TITLE</title>

<link href="test.css">

 

these items do show up in the source between the <head></head>

 

So this code which is already in the head..

{if isset($meta_description) AND $meta_description}
<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />
{/if}

is apparently failing because somewhere somehow prestashop will not allow custom meta content to be placed in the header...?

 

Pretty annoying. Any ideas?

 

Link to comment
Share on other sites

 

Next question:

 

I just noticed (when I do a "view source" from my browser) the meta descriptions and meta keywords are missing.

 

When I add to header.tpl as a test the following code:

<meta name="keywords" content="test" />

 

Nothing happens happens in the source.

 

Comparitively, when I enter the following code examples in header.tpl:

<title>TEST TITLE</title>

<link href="test.css">

 

these items do show up in the source between the <head></head>

 

So this code which is already in the head..

{if isset($meta_description) AND $meta_description}
<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />
{/if}

is apparently failing because somewhere somehow prestashop will not allow custom meta content to be placed in the header...?

 

Pretty annoying. Any ideas?

 

hello

why not to define these metas under preferences > seo & url's tab in your back office?

click edit button near the page name (on list) you will be able to fill these fields there.

Link to comment
Share on other sites

×
×
  • Create New...