xezus Posted June 22, 2013 Share Posted June 22, 2013 Hi, is here some easy way how to add new meta tag into back office header? Link to comment Share on other sites More sharing options...
vekia Posted June 22, 2013 Share Posted June 22, 2013 everything depends on prestashop version that you use Link to comment Share on other sites More sharing options...
xezus Posted June 22, 2013 Author Share Posted June 22, 2013 (edited) Sorry, I use the latest version 1.5.4.1 Edited June 22, 2013 by xezus (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 22, 2013 Share Posted June 22, 2013 open the: _ADMIN_DIR/themes/default/template/header.tpl you've got there <head> </head> just put your own meta tag there. another method is to use module and hook: displayBackOfficeHeader Link to comment Share on other sites More sharing options...
xezus Posted June 22, 2013 Author Share Posted June 22, 2013 And what code I have to use to display the meta with hookDisplayBackOfficeHeader, because this is obviously wrong public function hookDisplayBackOfficeHeader(){ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> } Link to comment Share on other sites More sharing options...
vekia Posted June 22, 2013 Share Posted June 22, 2013 no, totally different method. You have to create own module from scratch: http://doc.prestashop.com/display/PS15/Creating+a+PrestaShop+module Link to comment Share on other sites More sharing options...
xezus Posted June 22, 2013 Author Share Posted June 22, 2013 Yes I know that I need own module, but I don't know, how to use this public function hookDisplayBackOfficeHeader to hook(display, add) meta tag. Link to comment Share on other sites More sharing options...
vekia Posted June 22, 2013 Share Posted June 22, 2013 i pasted url to the official prestashop documentation abour creating own module, you've got there full step - by - step tutorial abour creating own module. create module, in the install function use registerhook declaration to register DisplayBackOfficeHeader hook, then use function: public function hookDisplayBackOfficeHeader(){ return $this->display(__FILE__, 'mymodule.tpl'); } create mymodule.tpl file with your code that you want to put into to the <header></header> section Link to comment Share on other sites More sharing options...
xezus Posted June 22, 2013 Author Share Posted June 22, 2013 Ok, thanks for your help and time Link to comment Share on other sites More sharing options...
vekia Posted June 22, 2013 Share Posted June 22, 2013 i marked this thread as [solved] if you've got any questions related to this case - feel free to continue discussion here regards Link to comment Share on other sites More sharing options...
simeen Posted October 18, 2014 Share Posted October 18, 2014 Hi, Can you tell me where the link that you talk about in this thread for creating my own module? I am using version 1.6. Will this tutorial work for my version. I am trying to get indexed into Bing and they are asking me to verify ownership by inserting the following authentication code into my header. <meta name="msvalidate.01" content="1E6904121DDEED26B45432C31838ADAF" /> Is creating my own module the best way to do this? Is there an easier or better way to do this? I don't quite understand your instructions after creating the module either. You said to "install function use registerhook declaration to register DisplayBackOfficeHeader hook, then use function" not sure what that means? Sorry for my lack of knowledge on this? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now