• Resolved marijn1887

    (@marijn1887)


    Could you provide some help with this plugin to work with Portfolio Items in genesis?
    Plugin: Genesis Portfolio Pro
    Would be much appreciated!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Scott DeLuzio

    (@scottdeluzio)

    I just got it working with Genesis Portfolio Pro and a link to a YouTube video.
    On the portfolio item edit page, be sure to select the Video option under “Format”, and include a link to the video you want displayed in the Genesis Featured Video Video URL box.
    If that still doesn’t work, could you be more specific with what isn’t working?

    Thread Starter marijn1887

    (@marijn1887)

    Thanks for your fast reply, really appreciated.

    I selected Video format and included a link to video, tried vimeo and local hosted as well.

    Still the image shows up in stead of video. Don’t know what else to mention..

    Here’s the link to portfolio page: https://bit.ly/2PqhfZV

    Thanks again!

    Plugin Author Scott DeLuzio

    (@scottdeluzio)

    It could be that your theme is using a different hook, which is causing it to not display correctly.
    If that is the case, you’ll need to look in your theme files for whichever file displays the archive pages. You can then look to see whatever hook is being used to display the content for each portfolio item. Look for something that includes genesis_do_post_image. You’ll need to add some code to that file (or functions.php).
    Something like this:

    
    // Add the video to whatever hook your theme is using.
    add_action( 'whatever_the_hook_your_theme_is_using', 'gfv_video_image', 0 );
    // Remove the featured image from portfolio items that are using videos.
    add_action( 'gfv_remove_post_image', 'cyb_remove_post_image' );
    function cyb_remove_post_image(){
        if ( 'portfolio' == get_post_type() ){
            remove_action( 'whatever_the_hook_your_theme_is_using', 'genesis_do_post_image' );
        }
    }
    // Add back the featured image for portfolio items that are not using videos.
    add_action( 'gfv_add_post_image', 'cyb_add_post_image' );
    function cyb_add_post_image(){
        add_action( 'whatever_the_hook_your_theme_is_using', 'genesis_do_post_image' );
    }

    You might need to play around with that code a bit, but it should point you in the right direction.

    Thread Starter marijn1887

    (@marijn1887)

    Ok, thanks will do. FYI tried it with two Genesis themes: Studio Pro and Aspire Pro

    Thread Starter marijn1887

    (@marijn1887)

    What theme did you use?

    I tried a couple of things but can’t figure it out. Even tried gensis sample theme and genesis main theme but still doesnt work..

    Plugin Author Scott DeLuzio

    (@scottdeluzio)

    Try adding a file to your child theme called archive-portfolio.php
    Add the following to that file:

    <?php
    add_action( 'genesis_entry_content', 'gfv_video_image', 0 );
    genesis();

    You may need to play around with other layouts which you can get from the existing archive page template.

    Thread Starter marijn1887

    (@marijn1887)

    Yeah, that works as in it shows the video’s now. So definitely a theme issue..but all other functions on the archive page are gone when using this php file. Unfortunately I just cant seem to find other template files than front-page for this theme..
    Anyways thanks a lot for your help.

    Plugin Author Scott DeLuzio

    (@scottdeluzio)

    I bet if you reach out to the theme developer, they should be able to point you in the right direction. You can tell them that you’re trying to create a custom archive page for a certain custom post type, and want to know which template file you can copy as a base for the changes you’re making.
    Hope that helps!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not working with Portfolio Items’ is closed to new replies.