-
AuthorPosts
-
October 9, 2013 at 4:02 am #172843
I asked for support before, and it was closed without resolution: https://kriesi.at/support/topic/sidebar-option-for-custom-post-type/
I’m using a custom content type called download (created by easy digital downloads). I also edited enfold as directed to enable the avia layout editor for my custom content type. It works great, and now I have the editor for my downloads. However the website doesn’t understand how to use this properly.
I have added a bit of code to every template file in the theme root folder, and every loop file in the includes folder. This bit of code prints out the template name in the source code for me. None of the templates are being used. Instead it’s using something from the config-templatebuilder folder I believe. How can I edit the page layout for this content type if it bypasses all template files?
Link to page http://thepluginfactory.co/warehouse/gard-pro/
- This topic was modified 11 years, 2 months ago by Branndon.
October 10, 2013 at 4:33 am #173380Hello Branndon!
I think you misunderstood what I said. The template file you created *from* the page.php file is where you need to edit. We don’t officially support adding the advanced layout editor to custom post types right now but the file used is template-builder.php for files using the advanced layout editor.
Regards,
DevinOctober 10, 2013 at 9:24 pm #173822I understand about child themes and somewhat about how the structure works. I had copied page.php from the main folder to the child theme folder. Even there, I can do anything I want to the code, and it’s not updating the website. It’s not a cache issue either.
I understand you don’t officially support the Advanced Layout Editor (ALE) on custom post types yet. Would you support it on the ‘post’ content type?
I’ve uploaded the 20 .php files from the enfold root folder to my child theme root folder, and added the filename as a class to everyone. I then added a bit of code to easily find in the page source _TPF. For example, page.php would get a class of page_TPF.
Even on a simple post (which uses the ALE) does not show any template being used. You can see a sample here http://thepluginfactory.co/pre-release-checklist-ensuring-your-wordpress-plugin-is-ready-for-launch/ if you search the source for _TPF you won’t see page, single, template-builder or anything similar. If I can just find the template file the ALE uses, I can fix all the my layout issues myself.
October 10, 2013 at 10:02 pm #173832Ok, I found the file, it’s
config-templatebuilder/avia-shortcodes/section.php
I’ve got done what I set out to do, thank you.
- This reply was modified 11 years, 2 months ago by Branndon.
-
AuthorPosts
- The topic ‘Custom content type using avia layout editor doesn't use a normal template file?’ is closed to new replies.