php template for Elementor Canvas
-
Greetings – I am using Elementor Canvas for a series of landing pages on my site. I need to add a custom data- attribute to the
<body>
tag of these pages. I cannot find the php file for pages created with this template.Can someone point me in the right direction, inform me of a hook I can use for this or explain some other way of getting custom code to be a part of the <body> tag. For example, I need my
<body>
tag to look something like this:<body *data-my-attr="MY VALUE"* class="page-template page-template-elementor_canvas page page-id-2151 logged-in wp-custom-logo landing-tpl-1 ast-desktop ast-plain-container ast-no-sidebar astra-2.3.0 ast-header-custom-item-inside ast-single-post ast-inherit-site-logo-transparent ast-above-mobile-menu-align-stack ast-flyout-menu-enable ast-default-above-menu-enable ast-flyout-right-side ast-default-below-menu-enable ast-full-width-layout ast-inherit-site-logo-sticky elementor-default elementor-template-canvas elementor-kit-14 elementor-page elementor-page-2151 astra-addon-2.3.2 " data-elementor-device-mode="desktop" style="" cz-shortcut-listen="true">
notice the 1st attribute….
- The topic ‘php template for Elementor Canvas’ is closed to new replies.