Hello,
I have a child theme set up and I need to create a page template to be applied to a particular page. This template must have the same structure and functions as the rest of the site, obviously.
So naturally I copy/pasted the page.php and loop-page.php files from the Enfold directory to the child directory, gave them new names (page-example.php and loop-example.php), edited the “get_template_part( ‘includes/loop’, ‘example’ );” bit and applied the template to that particular page I wanted.
The result, on the front end, was a page with an extreeeemely different structure from the other regular pages, with lots of extra markup AND that also has a <br> between every element created through the Avia Layout Builder.
The extra markup I can remove, to a certain point, by editing the loop-example.php file but I can’t get around the <br> everywhere destroying the layout.
Also, in the loop-example.php, if I try to remove the div “entry-content”, part of a tag will still show up written on the front end. Like this:
itemprop=”text” >
So I can’t actually remove 100% of the extra markup I wrote about.
Also #2, the code block stops working. It just shows up as a written shortcode on the front end. But that’s a minor annoyance to my problem.
So my question is: how can I create a page template that’s exactly the same as the “default template”?
Thank you
Hey kidcabide!
I would copy the page.php or even the blank or archives page templates and start from there. You’ll want to create your own loop inside the file instead of using our existing loops, or whatever your trying to do.
Best regards,
Elliott
Ah very well.
Thank you for your answer