hero image

Hiding the featured image

Home Forums WordPress Themes Narcos Hiding the featured image

Forums WordPress Themes Narcos Hiding the featured image

PLEASE NOTE A RECENT CHANGE:
The forum is read-only. Please submit any support request here.

This topic contains 3 replies, has 2 voices, and was last updated by  mihai 3 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts

  • flevy2
    Member
    TT Client
    #70594

    The feature image on my Portfolio and Shop pages is always gigantic, often too large to see without scrolling up and down a lot. This is not very useful for a portfolio. Unfortunately, I must include a featured image so that the post displays within my Portfolio main page and Shop main page (in the mosaic of every portfolio/product item).

    How can I hide the featured image on individual Portfolio or Shop posts, so that I can use a smaller picture on those pages? Or, how can I make that gigantic featured image clickable, so that it opens a shadowbox image in a size that correctly fits the browser window?


    flevy2
    Member
    TT Client
    #70603

    I tried hiding the featured image with some PHP code I found, and it worked well for the Portfolio pages without hiding the Portfolio gallery grid images:

    // Hide featured images in posts

    function my_post_image_html( $html, $post_id, $post_image_id ) { if(is_single()) { return ”; } else

    return $html; } add_filter( ‘post_thumbnail_html’, ‘my_post_image_html’, 10, 3 );

    Unfortunately, it worked TOO well: It also hides images from my Woocommerce Product pages! I can put up with the too-large featured image on my individual Product pages, but I can’t have such large images on the individual Portfolio pages. So I’m back to square one. Please don’t send me to WPMatic, because I’ve been working with them already and they’re absolutely terrible.


    flevy2
    Member
    TT Client
    #70694

    I found a way to hide the featured image on the Portfolio pages by editing the portfolio single post file. I still can’t control the too-large size of the featured image on the Product pages, though.


    mihai
    Member
    Member
    #70771

    Hi Fran Levy,
    We are sorry to tell you but here we are not working with requests of custom changes which are considered as paid customization work and managed by our featured service WPmatic.
    Please submit your request on https://wpmatic.io/ if you need to order such theme modification work.
    Thanks for your understanding.
    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)

Hiding the featured image

Home Forums WordPress Themes Narcos Hiding the featured image

[i]
[i]
[i]
[i]