Jump to content

Add a xml namespace to <html>


maluma

Recommended Posts

Hey guys,

I'm trying to develop a module for prestashop 1.5.

I need to add a xml namespace to the html-tag like the one for facebook:

<html xmlns:fb="http://ogp.me/ns/fb#">

Is it possible to do that without touching the template?

Is there maybe a prestashop function like the one to add stylesheets:

$this->context->controller->addCSS(($this->_path).'blocksharegplus.css', 'all');

It would be great if anyone could help me or has an idea to sove that problem.

Greetings

Maluma

Link to comment
Share on other sites

Thanks for the fast answer!

 

 

all you have to do is modification of header.tpl file

 

I thought about that, but if I sell the module, the user has to use my header.tpl and it could get into conflict with other templates.

 

 

as far as i know open graph tags works also without this definition of html object, no worries ;)

 

Yeah, but this was just an example. The tag I want to insert will be necessary.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...