Using Elementor Template shortcode [elementor-template id="xxx"] in php file not displaying properly on front-end #27364
Labels
status/awaiting_triage
Indicates when an Issue, Pull Request, or Discussion awaits to be triaged.
Prerequisites
Description
Hi,
I am using the Elementor Templates to create a loop item template. It generates a shortcode and I have inserted it into my wp query code.
Below is my code:
It sort of works.
It displays the post title + post content, but it's missing the custom styles.
From the Elementor editor, I have added a background image to the contain and changed the color of the text, but it's not showing those customizations on the front-end.
Elementor Editor template screenshot:
Front-end screenshot:
Why isn't it showing the custom styles modified in Elementor editor on the front-end?
Steps to reproduce
echo do_shortcode('[elementor-template id="448"]');
full code:
Expected behavior
The expected behavior - The output in the front-end should look like the template that was created from the Elementor editor, but it isn't.
Isolating the problem
Elementor System Info
Click to reveal
Agreement
The text was updated successfully, but these errors were encountered: