Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1108695
    heltaskelta
    Participant

    Hi,

    Is it possible to display a different featured image on the portfolio top level main page (the one with all the small thumbnails) to that of the image which is displayed at the top of the page which you click through to the individual portfolio post?

    Thanks

    #1108697
    heltaskelta
    Participant
    This reply has been marked as private.
    #1108924
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! What’s your current stack using? This can be done by setting up a custom field, so that you can set another image that you want to display inside portfolio item. Please go through our ACF Pro guide on how to setup custom fields (https://community.theme.co/kb/integrated-plugins-acf-pro/).

    Because this requires a template change, I’d advise that you setup 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.

    I will demonstrate an example for Integrity stack and you can implement it on other stacks similarly.

    Copy the file content-portfolio.php which is under “x/framework/views/integrity/” into your child theme’s respective location (“x-child/framework/views/integrity/”).

    Then Edit the file using a text editor and locate the following line of code:

    <?php x_portfolio_item_featured_content(); ?>

    Replace it with the following code:

    
      <?php if ( x_is_portfolio_item() ) : ?>
        <?php //Add Your Own Custom Featured Image ?>
      <?php else : ?>
          <?php x_portfolio_item_featured_content(); ?>
      <?php endif; ?>
    

    Change the comment //Add Your Own Custom Featured Image with your custom field name so that it will render your changed image.

    Hope that’s clear.

    #1111852
    heltaskelta
    Participant
    This reply has been marked as private.
    #1111909
    Joao
    Moderator

    Hi there,

    The reason why everything went off key when upgrading is because you probably needed also to perform a Child Theme Update.

    Please refer to this thread:

    https://community.theme.co/forums/topic/child-theme-updates/

    The ACF plugin is bundled and compatible togheter with the latest versions of X and in order to perform the required change you will need to update prior to all.

    If you face any problems during the update let us know and we will help you.

    Thanks

    Joao

    #1117567
    heltaskelta
    Participant
    This reply has been marked as private.
    #1117984
    Rad
    Moderator

    Hi there,

    Please add this CSS to Admin > Appearance > Customizer > Custom > CSS

    .single-x-portfolio .p-meta span:nth-child(2),  .tax-portfolio-tag .p-meta span:nth-child(2){
    display: none;
    }

    Hope this helps.

    #1122080
    heltaskelta
    Participant
    This reply has been marked as private.
    #1122181
    Thai
    Moderator

    Hi There,

    Please update the previous CSS a bit:

    .single-x-portfolio .p-meta span:nth-child(2),  
    .tax-portfolio-tag .p-meta span:nth-child(2),
    .tax-portfolio-category .p-meta span:nth-child(2){
    	display: none;
    }

    Hope it helps 🙂

    #1123559
    heltaskelta
    Participant
    This reply has been marked as private.
    #1123659
    Thai
    Moderator

    Hi There,

    I could see the Case Studies title on the single portfolio page:

    http://i.imgur.com/PxnN6ER.png

    Can you please try again?

    Thanks.

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