How to Remove Featured Image in MH Magazine Lite Theme?
-
Hi,
I want to know how to remove featured image from posts of MH Magazine Lite theme? Is it required to have a child theme first before making any changes? If yes, then how to have MH Magazine Lite theme’s Child theme?
Please guide.
Thank You
-
Hi Sam jini,
it seems this is what you are looking for: Remove feature image in post.
Hi,
Thank You for helping.
I removed that line but still it shows us blank square box. I request you to please check our site and guide us.
Thank You
You haven’t provided a link to your site, so we can’t see what you mean. However, please be aware that on posts the theme actually doesn’t display an image placeholder (blank square box) anyway.
That means you’re probably talking about archives and not about the single post view. In case you want to modify the layout on archives (if you’re familiar with coding), you can find the code in the file content-loop.php.
But in general it’s actually recommended to upload featured images to your posts because this is how this magazine theme is supposed to work. You’ll only find very few professional magazine and/or news websites nowadays that don’t have images within their posts.
You haven’t provided a link to your site
Fixed. The link was there it was just inadvertently hidden as
<a href="..."></a>
which meant you couldn’t see it.Hi,
I am really sorry.. if link didn’t worked.
Here is the link- jobsjini .com (i have put a space between domain name and .com because i don’t want this to get in eyes of Google. It might get counted as comment spamming)Actually i don’t want featured images to get appeared. so, please guide me.
i read your “How to use featured images in wordpress?”. in this article you have shown a blank box which appear infront of content. i don’t want that blank box. i want only content.
please guide.
Thank You@sam jini: As mentioned already in the previous answer, if you’re familiar with coding, you could create a child theme and then modify the layout on archives as you like (e.g. by removing/replacing the image placeholders).
As an alternative, you also could simply hide them with some CSS:
.mh-image-placeholder { display: none; }
However, if you’ve planned to run a professional online magazine or news website (which is the purpose of this theme), it would be highly recommended to make use of images within your posts. There also are plenty of resources where you can find high-quality images for free use.
Hi,
Thank You. I got it.
I like you Theme so much that’s why i wanted to hide only image. I really appreciate you help.
Thank You
You’re welcome and good luck with your website.
Sam, I have exactly the same request. How exactly did you remove the featured image placeholders?
@stevemulvey: The answer is already included in this thread here.
If you have any questions about the free MH Magazine lite theme, please open your own thread – thanks.
Hi I tried with
.mh-image-placeholder { display: none; }
But is not working I puted in my CSS adicional.
My site is https://ciclistarodando.com/
Also I puted in my Child Theme:
/* Theme Name: Hijo de Nueva portada Version: 1.0 Description: A child theme of MH Magazine lite Template: mh-magazine-lite Author: Jonathan T. */ @import url("../mh-magazine-lite/style.css"); /* Your awesome customization starts here */ .mh-image-placeholder { display: none; } .entry-tags { display: none; }
-
This reply was modified 8 years, 3 months ago by
jonathan2908.
-
This reply was modified 8 years, 3 months ago by
jonathan2908.
@jonathan2908: This thread is about image placeholders, not about featured images itself. It seems you don’t have any image placeholders on your website so of course the code won’t work for you.
Please don’t just post in threads of other users. If you have any questions about your free theme, then please open your own thread to keep this conversation clean and not confusing for other people – thanks.
Thanks for your support. I just see title :
[Resolved] How to Remove Featured Image
But In some point i chage to to “image placeholders”. Thanks for response.
If you are just wanting to remove the insanely oversized featured image from a post, go to the theme editor and click on the file called: mh-custom-functions.php
Scroll down in the editor box and find this section…change the word ‘enable’ to ‘disable’. That will remove the insanely oversized featured image from the post, but keep it as a thumbnail on the post grid / list. It’s that simple. No other coding is needed to remove the featured image.
/***** Featured Image on Posts *****/
if (!function_exists(‘mh_magazine_featured_image’)) {
function mh_magazine_featured_image() {
global $page, $post;
$mh_magazine_options = mh_magazine_theme_options();
if (has_post_thumbnail() && $page == ‘1’ && $mh_magazine_options[‘featured_image’] == ‘enable’ && !get_post_meta($post->ID, ‘mh-no-image’, true)) {@jkmcd2016: Not sure what you mean with insanely oversized featured image, because the featured image on posts is actually a regular size which isn’t unusual at all, see theme demo.
But thanks for helping out with your thoughts. However, what you’ve suggested is considered bad coding practice. You shouldn’t modify core theme files through the WordPress code editor, not only will you break your site and being logged out of your WordPress dashboard in case you make a mistake, but your changes also will be lost after theme updates.
Instead, the only correct and clean way of removing the featured image on posts with coding, would be by creating a child theme, copying the file content-single.php to your child theme and then simply delete this line of code in that file:
mh_magazine_lite_featured_image();
That’s it actually. That way you’ve removed the featured image on posts and the code changes also will remain after theme updates as your code modification is saved in your child theme.
As mentioned already in the first response of this thread, what we just explained also is already covered here: Remove feature image in post.
-
This reply was modified 8 years, 3 months ago by
- The topic ‘How to Remove Featured Image in MH Magazine Lite Theme?’ is closed to new replies.