Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #234481

    naomi_cny
    Participant

    Hi there, I love the archive for the portfolio but I don’t love the oversized featured image on my portfolio items. Is it possible to retain the featured image thumbnail on the archive page but remove it completely from within the post page? I have tried to remove them through other methods found in this forum but nothing was working for me.

    I’m using a child theme and tried to adjust content-portofolio.php file by a) removing:

    <div class=”entry-featured”>
    <?php x_portfolio_item_featured_content(); ?>
    </div>

    but that deleted the featured image on the archive, too. I then tried b) replacing the above with:

    <?php if(!is_post() || !is_page()): ?>
    <div class=”entry-featured”>
    <?php x_featured_image(); ?>
    </div>
    <?php endif; ?>

    but that also got rid of the archive featured image thumbnails though it remained on the post page. Next, I tried c) adding the following to my Customizer Custom CSS:

    .single-post .entry-featured {
    display: none;
    }

    but that had no visible effect on the post (or archive even this time).

    Is there anything else I can try? My portfolio is for my design work and the featured image is unnecessary as each item requires a gallery of images to showcase different pieces of the project.

    My url is: http://naomimekeel.com/work/; I’m working in WordPress 4.1.1, the latest version of X and shortcodes 3.0.5.

    Thank you in advance for any help!

    #234552

    cass
    Participant

    Hey. Try posting the writing below into your Customizer CSS.

    /* hides featured image on single post */
    .single-post .entry-featured {
    display: none !important;
    }

    #234664

    Paul R
    Moderator

    Hi,

    For portfolio item page the code should be

    
    .single-x-portfolio .entry-featured {
        display:none;
    }
    

    Hope that helps.

    #235024

    sinfm
    Participant

    Hi,

    How would I remove the featured image from my blog page as well?

    Thanks.

    #235030

    sinfm
    Participant

    nevermind, i tried this and it worked:

    .blog .entry-featured { 
    display: none !important; }
    #235054

    naomi_cny
    Participant

    Thank you so much, that worked!

    #235098

    Nico
    Moderator

    You’re most welcome.

    Let us know if you need anything else.

    Cheers!