• Resolved Brian

    (@gophumek)


    Hello,

    I would like to know how to get rid of the extra image on individual posts. There is one in the post itself and I think the featured image I use, or it just may be the image I use in the post, is larger and at the top of each post.

    I would like to have this image on the top of each post not show up.

    Thank you,
    Brian

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi Brian,

    thank you for using MH Magazine lite.

    In the premium version of the theme there is an option to disable featured images on posts. If you want to get rid of it in the lite version, you have to delete the code in content.php:

    <?php
    $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'content');
    $full = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');
    if (has_post_thumbnail()) : ?>
    <div class="post-thumbnail">
    	<a href="<?php echo $full[0]; ?>" rel="prettyPhoto"><img src="<?php echo $thumbnail[0]; ?>" alt="<?php echo the_title(); ?>" title="<?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?>" /></a>
    </div>
    <?php endif; ?>

    You can learn more about the premium version of MH Magazine here: https://www.mhthemes.com/themes/mh/magazine/

    Regards
    Michael

    Looking to remove grey featured post photo.

    I just removed

    <?php if (has_post_thumbnail()) { the_post_thumbnail('loop'); } else { echo '<img src="' . get_template_directory_uri() . '/images/noimage_174x131.png' . '" alt="No Picture" />'; } ?>

    fron Content.php. That fixed it.

    Where do you go to remove that code?

    Hi AmericanWord,

    you can find this piece of code in the file content.php.

    Just use an ftp client or the WordPress editor.

    https://codex.www.ads-software.com/Editing_Files

    Regards
    Michael

    Hi. Any updates on how to remove featured image in post using version 1.6.1? I tried doing it and couldn’t find code in Content.php.

    Thanks!

    Hi 6784272,

    for version 1.6.1 of MH Magazine lite, you can just delete this in content.php:

    <?php mh_featured_image(); ?>

    Please note: it is recommended that you always create a child theme first when you want to modify theme files, otherwise all your changes will be lost after a theme update: https://codex.www.ads-software.com/Child_Themes

    Regards
    Michael

    Hi MH Support,

    Thanks for the quick response. I actually bought the pro version since I really like your theme and customer support is amazing.

    I have a few questions though:

    I’m currently using a static page in order to have a spotlight post at the top, followed by custom posts, a side bar (which I think is home 6) and a pic carrousel at the bottom. However, I don’t like the layout of the custom posts. I’d like them to appear like option 1 of ‘Archives Layout’, but that option doesn’t seem to work with a static page. Here’s my site: https://tomalapapa.com/

    Would you recommend I download the child theme in case I want to edit code in the future?

    Send link so I can rate you!

    Thanks!!!

    Forgot to ask you something else!

    When I click on one of my posts the sidebar (homepage 6) disappears!

    Thanks again!!!

    Hi 6784272,

    sorry for the late reply, we missed these questions because we didn’t get an email notice this time. I have answered your questions in the other thread which you have started: https://www.ads-software.com/support/topic/option-1-archives-layout-doesnt-work-with-static-page

    If you want to rate the MH Magazine lite theme, you can do it here: https://www.ads-software.com/support/view/theme-reviews/mh-magazine-lite

    Thanks! ??

    Kind regards
    Michael

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Duplicate images’ is closed to new replies.