Hi, I installed the child theme for enfold and I am trying to customize the portfolio page.
wordpress/portfolio-item/test-project/
I added
single-portfolio_entry.php
single-portfolio_item.php
single-portfolio.php
single-portfolio-entry.php
single-portfolio-item.php
single-portfolio.php
to the root of the theme but none of them seem to change the page?
I wan’t to add a bit of php to the bottom of all portfolio entries content types
Any ideas?
Thanks,
-Andrew
Hi,
So made progress. I’m using a child theme and edits to the single-portfolio is pickup up now as long as I don’t flip to the advanced avia builder. How do I get the theme to work with the builder when I do? I figure I have to edit the loop-single-portfolio but its not displaying.
Hey!
You need to edit config-templatebuilder > avia_shortcodes > portfolio.php if you’re using the avia builder. Please hire a freelance developer to customize the shortcode for each custom post type. For further customization, please visit Werkpress.
Best regards,
Ismael
It looks like when you flip to the avia builder it flips to the builder template for all content types? Can you confirm this? My guess is that because they added a template button above the editor that’s how avia tries to cope with disabling the default word press behavior of recognizing the single-…. template.
There was probably a cleaner way to do this that involved registering a page type in avia, but I ended up replacing template-builder.php in the child theme and injecting php based on type.
added this simple code around line 44
echo $content;
// Inject Special content for specific content types
if(get_post_type()==”portfolio”){
echo ” test of cck content”;
}
I will probably make function and call it from the standard wp page template and template-builder so it works with/without avia on.