• Resolved cmykliz

    (@cmykliz)


    Fairly noviced WordPress user here – is there a way with this theme to change the featured image size on the post page, or even remove it completely? They’re way too large on the blog post pages.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Bizberg Themes

    (@bizbergthemes)

    Hi,

    You can use this CSS to hide the image. Goto Appearance > Customize > Additional CSS and paste the below code.

    body.single .detail_image_wrapper img {
        display: none;
    }

    Thank You

    Thread Starter cmykliz

    (@cmykliz)

    Thank you! That’s worked perfectly. Not sure if I need to make a new post but I have a related question: the featured image thumbnails don’t link to the post on the homepage/catregory pages. Is this a theme option or am I doing something wrong?

    Theme Author Bizberg Themes

    (@bizbergthemes)

    No, The theme is like that. There is no option to change that. You can see the demo here https://bizbergthemes.com/green-eco-planet-pro/2020/06/

    Thank You

    Thread Starter cmykliz

    (@cmykliz)

    Thanks for the quick reply! Is there any way an option could be added? Or something put in the php file? Maybe it’s more complicated than I understand but it seems like a fairly simple feature and would be incredibly useful. I really like this theme and would hate to have to change.

    Thread Starter cmykliz

    (@cmykliz)

    Nevermind! I just found a way to do it.

    add_filter( 'post_thumbnail_html', 'my_post_image_html', 10, 3 );
     
    function my_post_image_html( $html, $post_id, $post_image_id ) {
     
      $html = '<a href="' . get_permalink( $post_id ) . '">' . $html . '</a>';
      return $html;
     
    }

    Added to the Theme functions php file.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change featured image size on post page’ is closed to new replies.