Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Remove featured image from the top of blog posts?
New Landing › How can we help? › Atelier › Remove featured image from the top of blog posts?
- This topic has 17 replies, 5 voices, and was last updated 8 years by Mohammad – SUPPORT.
-
Posted in: Atelier
-
September 12, 2015 at 5:05 pm #212485
Is it possible to remove the featured image from all individual blog posts by default?
I want to migrate our old blog, which has an image at the top of each post.. which is now getting duplicated because the default behaviour is the show the featured image at the top of the blog post.
I know I can go into each and every post and customise this, but obviously that’s going to take an age.
I’m happy to copy/tweak a theme template file if needs be, just to stop this behaviour.
I’ve dug around a bit, but can’t find the logic that decides to show it.
Any advice would be appreciated.
-Barry
September 14, 2015 at 8:42 am #212590Hi,
Please use this custom css code:-article.post.single-post-standard figure.media-wrap{ display:none !important; }
Thanks
MohammadSeptember 15, 2015 at 4:50 pm #213248Hi Mohammad,
Thanks for the suggestion, but that doesn’t stop the image downloading, and the featured images are quite large.
Rather than hide it with CSS, I was hoping to delete the line of PHP the adds it.Could you point me in the right direction?
Thanks,
-BarrySeptember 15, 2015 at 5:04 pm #213252Hi,
Please paste this code functions.php of child theme.
remove_action( 'sf_post_article_start', 'sf_post_detail_heading', 99);
Thanks
MohammadSeptember 15, 2015 at 10:04 pm #213341Hi,
I tried this and it didn’t work.
For what it’s worth, hiding it with the CSS did work, but as I mentioned, I’d rather pull it from the HTML altogether, and avoid the large download.
You can see both images are still at the top here:
http://preview.mccaul.com/2015/06/carved-engagement-ring-commission/Despite adding the line you mentioned to functions.php in the child theme. (I also tried adding typo just to make sure the functions.php file was being read, was not cached, and it broke as expected. )
Any thoughts?
September 16, 2015 at 7:59 am #213393Hi,
Please remove last code and use this new code:-
add_action( 'sf_post_article_start', 'sf_post_detail_media', 99 );
Thanks
MohammadSeptember 16, 2015 at 8:00 am #213394Try this:
remove_action( 'sf_post_content_start', 'sf_post_detail_media', 10 );
– Kyle
September 16, 2015 at 1:13 pm #213611Hi,
So Mohammad, I tried your option, and I think perhaps you meant ‘remove_action’, rather than add.
Add actually added a slightly different (full page width), image on top of the other featured image, resulting in three (screen shot attached). The wide featured image, the inline featured image, and then the image we’d included in the actual blog post ourselves (as our old theme didn’t have featured images).
Kyle, I tried your remove_action too, and it had no effect at all I’m afraid.
Attachments:
You must be logged in to view attached files.September 16, 2015 at 1:21 pm #213619Hi,
Please provide me login detail to check in detail.
Thanks
MohammadSeptember 16, 2015 at 1:26 pm #213625This reply has been marked as private.September 16, 2015 at 1:28 pm #213627This reply has been marked as private.September 16, 2015 at 2:35 pm #213655Hi,
I have resolved the issue so please check.
Thanks
MohammadOctober 27, 2015 at 7:43 am #223478I am having the same issue; I imported my content from Blogger where I did not have a featured image, so now the first image of every post shows twice. Is there a way to remove overall? I tried copying and pasting the CSS code, but I kept getting an error message (not sure if I was putting the code in the correct place).
October 27, 2015 at 8:26 am #223480Hi,
Please provide me specific page url with issue.
Thanks
MohammadOctober 27, 2015 at 8:42 pm #223670Hi Mohammad, It’s on every page. I don’t want to show a featured image at all.
http://know-design.com/blog/ -
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.