- This topic has 5 replies, 3 voices, and was last updated 3 years, 9 months ago by David.
March 17, 2019 at 2:16 am #841165powerlifter
Hooks do not work for pages created with the Elementor plugin. I tried to install Google Tag Manager. The top section has a header tag. Customized hooks on the Elements tab.
When you create a page without the Elementor plugin, everything works.
Have a solution?
On each page created in Elementor it’s not good to add the Google Tag Manager container.
Waiting for help.
Now put the Google Tag Manager container on the page without using hooks.GeneratePress 2.2.2GP Premium 1.7.8March 17, 2019 at 4:37 am #841234DavidStaffCustomer Support
If you use Elementor theme templates or their canvas template then it replaces the GP Theme template and therefore has no GP hooks.
Elementors solution is to use a plugin to add your GTM.
The alternative is to not use the Elementor templates, instead you can use GP Hooks to hook in elementor content into the theme
Adding CSS: http://docs.generatepress.com/article/adding-css/June 10, 2019 at 4:28 pm #925321Eric
Hi David, (or anyone else)
If we place Google Tag Manager in the PHP functions code (maybe Code Snippets plugin) will this still work (GTM Codes) when using Elementor Canvas or Elementor templates? I’m thinking of adding funnel pages to my GP site so would be using Elementor Canvas to eliminate header and menus for a clean look.
Your solution of Elementor content into the GP hooks will work but more steps to accomplish. Just looking for an easier/faster solution and wondering if the php functions would cover all the bases whether GP or Elementor Canvas?
I could also try the GP Disable Elements to remove distractions on my funnel landing pages like header, menu, content title, etc. That might work too?
EricJune 10, 2019 at 4:39 pm #925322DavidStaffCustomer Support
yes, the best method is to use the GP Layout Element to a. disable all of the elements you don’t require and b. set the page builder container to full width. This way you will maintain all the GP hooks and not have to bother with selecting the Elementorfull width template. You can also assign the display rules to inluce My Templates so there are no distractions when editing Elementor templates.
Its what i use in the recent Elementor Sites added to the Site Library.
Adding CSS: http://docs.generatepress.com/article/adding-css/June 10, 2019 at 7:46 pm #925400Eric
Thanks David for your prompt reply!
Appreciate the advice and best use case for GP 🙂June 11, 2019 at 1:49 am #925576DavidStaffCustomer Support
Adding CSS: http://docs.generatepress.com/article/adding-css/
- You must be logged in to reply to this topic.