Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #233928

    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

    • This topic was modified 10 years, 8 months ago by agbishara.
    #234102

    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.

    #234282

    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

    #234316

    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.

    #234400

    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.

    • This reply was modified 10 years, 8 months ago by agbishara.
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Trying to Customize Post type theme for the portfolio’ is closed to new replies.