Marco Panichi Posted February 16, 2023 Share Posted February 16, 2023 (edited) Is there an addon to insert HTML blocks in the head tag and also in the body? I need to put js, css and html in the head, but also need to put html blocks in the body hooks. I haven't found anything like this in the marketplace, just addons that do one or the other; no addon allows you to do both Edited February 16, 2023 by Marco Panichi (see edit history) Link to comment Share on other sites More sharing options...
juanrojas Posted February 16, 2023 Share Posted February 16, 2023 take a look at this module Link to comment Share on other sites More sharing options...
Zohaib-fk Posted February 16, 2023 Share Posted February 16, 2023 (edited) Hi, Greetings of the day. I have a module marketplace which allows to add custom code in head and body tag of all Or selected products categories cms manufacturers and suppliers pages. Below is the link https://addons.prestashop.com/en/2_community-developer?contributor=301729 Edited February 16, 2023 by Zohaib-fk Link added (see edit history) Link to comment Share on other sites More sharing options...
Marco Panichi Posted February 16, 2023 Author Share Posted February 16, 2023 24 minutes ago, juanrojas said: take a look at this module This module doesn't allow to add HTML to body tag 1 minute ago, Zohaib-fk said: Hi, Greetings of the day. I have a module marketplace which allows to add custom code in head and body tag of all Or selected products categories cms manufacturers and suppliers pages. Where is this module? Can you give me the link? Link to comment Share on other sites More sharing options...
Zohaib-fk Posted February 16, 2023 Share Posted February 16, 2023 (edited) Hi, Greetings of the day. Below is the link https://addons.prestashop.com/en/2_community-developer?contributor=301729 Edited February 16, 2023 by Zohaib-fk (see edit history) Link to comment Share on other sites More sharing options...
Marco Panichi Posted February 16, 2023 Author Share Posted February 16, 2023 5 minutes ago, Zohaib-fk said: https://addons.prestashop.com/en/2_community-developer?contributor=301729 Are you talking about this addon https://addons.prestashop.com/en/seo-natural-search-engine-optimization/41205-custom-html-css-js-on-selected-pages.html ? I cant add custom HTML to hooks, only add custom HTML at the beginning of the body tag Or am I wrong? Link to comment Share on other sites More sharing options...
Zohaib-fk Posted February 16, 2023 Share Posted February 16, 2023 (edited) Yes, we can add code in the body or head tags on selected pages and languages. May I know the hook name to add the code? I can easily add-hook from the module and add custom code to hook in the front office. Prestashop documentation will help to know list hooks and their work. Edited February 16, 2023 by Zohaib-fk Post Updated (see edit history) Link to comment Share on other sites More sharing options...
Nickz Posted February 16, 2023 Share Posted February 16, 2023 2 hours ago, Marco Panichi said: I need to put js, css and html in the head, but also need to put html blocks in the body hooks. for .js there is a custom-js file in the assets/js of most themes. Link to comment Share on other sites More sharing options...
Zohaib-fk Posted February 16, 2023 Share Posted February 16, 2023 (edited) I can easily add drop down with a list of hooks name and we can choose hook names from drop-down options and add code to the hook in the front office Edited February 16, 2023 by Zohaib-fk Post Updated (see edit history) 1 Link to comment Share on other sites More sharing options...
ddbodyjab Posted February 17, 2023 Share Posted February 17, 2023 On 2/16/2023 at 7:13 AM, juanrojas said: take a look at this module I couldn't get this module to work. PrestaShop 8, classic theme, and no child themes. It doesn't write anything into my head, body or anything. Link to comment Share on other sites More sharing options...
juanrojas Posted February 17, 2023 Share Posted February 17, 2023 hace 1 hora, ddbodyjab dijo: I couldn't get this module to work. PrestaShop 8, classic theme, and no child themes. It doesn't write anything into my head, body or anything. the very title of the module gives you a hint of the problem 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