Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1276789
    Kiljan
    Participant

    WordPress 4.6.1
    X Version: 4.6.4
    Cornerstone 1.3.3

    Hi.
    I am setting up a portfolio using the video portfolio item.
    but in the tag archive, I don’t see the featured videos only featured images.

    Is there something I could do to fix that?

    Here is a portfolio tag archive page. LINK

    Thanks

    #1276865
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look and fix this issue? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #1278089
    Kiljan
    Participant
    This reply has been marked as private.
    #1278386
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the information. The videos will only display in your portfolio page. It will just display the featured image (if there are any) and the excerpt if you are going to view the items in portfolio category or portfolio taxonomy archive pages.

    To display the video in the category or portfolio archive pages, please do the following:
    1] Because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    2] After the child theme is set up, please add the following code in your child theme’s functions.php file

    // Add Featured portfolio in portfolio arcive pages
    // ============================================================================= 
    function add_featured_portfolio(){ ?>
      <?php if ( x_is_portfolio_category() || x_is_portfolio_tag() ) : ?>
        <div class="entry-featured mao ni">
            <?php x_featured_portfolio( 'cropped' ); ?>
        </div>
    
      <?php endif; ?>
    <?php }
    add_action('x_after_the_excerpt_begin', 'add_featured_portfolio');
    // =============================================================================

    3] And please edit each of your portfolio item and make sure that the featured content is set to “Media”. You can find this setting in the Portfolio Item Settings. Please see the screenshot below:

    Hope this helps. Please let us know how it goes.

    #1286155
    Kiljan
    Participant

    Thanks, it worked

    #1286171
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1276789 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>