Remove thumbnail from individual post
-
Here is my website http://www.thefashionistamomma.com
So you don’t want to display the image after someone clicked (or accessed directly from it’s URL) on your post, is that right?
Yes exactly.
Did you look inside the single.php file?
Be sure that you do not modify any theme files directly – those changes will be lost when the theme is updated. The correct way to modify a theme is by using a child theme
Yes and I found it linking back to the loop.php but no direct link to the photo when its taken out of the loop.php it removes it from both.
wpyogi I have seen those instructions but I don’t even know how to locate where to add these files. I am totally new (used to be on blogger) and I have no idea where to locate the files. This is a short fix for me (roughly a month until the designer I have can finish). Sadly I am on a time crunch and need this up asap.
I have only made 3 changes to the code itself with the two I have questions I’m only totaling 5 and they aren’t huge so, Im not terribly worried. But for future if you could tell me where exactly I can find the files to create a child theme that would be fantastic!! TIA
Well, you will have a much bigger mess when you update the theme and lose all the changes you have made to theme files. And if you avoid updating the theme, you will eventually very likely run into compatibility or security problems – which are also a much bigger problem than taking some time now to do it correctly.
Moving all of your changes to a child theme later is much more work. You’ll have to redo quite a bit of work in most cases. Have you modified any theme files yet?
Did you read the link I posted – it’s not hard to make a child theme.
Yes I read it. and I only made 3 changes to the file directly it was a realignment of the menu bar, a instagram feed addition to the header and deleting the meta tags from showing. I did read the link several times. I don’t know where the files are located i.e. it says it shows a file drop down is that in my computer before I zip file it to add it? or it somewhere here in wordpress or on my host site? That is what I don’t understand. Sorry you probably think I am stupid for asking but, I honestly would have done that if I knew where the heck to start.
No problem – it’s a lot of new info, I know :)! And the Codex isn’t that easy to understand (IMHO).
Looks like Themify has some hopefully better info here:
After creating your child theme, what I think would be the simplest way to get what you want, is to add the following lines to your functions.php
add_filter( 'post_thumbnail_html', 'thumbnail_be_gone', 10, 3 ); function thumbnail_be_gone( $html, $post_id, $post_image_id ) { if(is_single()){ $html = ''; } return $html; }This way you won’t have to hunt for the code that generates your thumbnail.
The topic ‘Remove thumbnail from individual post’ is closed to new replies.
