Load template from functions.php
-
Hi,
I’m trying to load a elementor page from my functions.php.
I hook into the init function of wordpress and check the url. If the url is a specific url I want to load an elementor page with
page_id
200.I already tried
load_template(locate_template('page.php'))
but that just shows the default theme page without content.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Load template from functions.php’ is closed to new replies.