By Quentin Lotts Y0283632-X on Thursday, 15 October 2015
Posted in Technical Issues
Replies 19
Likes 0
Views 1K
Votes 0
Hi,

We are using version 5.0.19. We want the post image to appear when the post is shared with Facebook and LinkedIn but we do not want the image to appear at the start of the actual blog post. How do we remove the post image from the actual post? I can't see a way to do that in the settings.

Thanks
Hi there,

It seems like you are using a very old version of easyblog hence we are not entirely sure if that version already have the settings to disable post image in both entry and listing view. In latest version 5.0.28 you can turn off the post image by going to your backend > easyblog > settings > layout > post options > show post image, http://screencast.com/t/MyocYKWxOUY .

Hope these help.
·
Thursday, 15 October 2015 20:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I'm surprised you say VERY OLD VERSION. I know it is not the latest but it is quite recent.

In our version we have similar POST OPTIONS:

Show post image set to HIDE
Show PostImage Placeholder set to HIDE.

The blog post image still outputs.

Was this a bug with this version?
·
Thursday, 15 October 2015 22:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Upgraded to latest version and set as in your screen capture. The blog image still appears.
·
Thursday, 15 October 2015 23:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Quentin,

I am sorry for the delay of this reply. Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Friday, 16 October 2015 12:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Site details,user login and FTP provided as requested.
·
Tuesday, 20 October 2015 01:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

I am really sorry for the delay of this reply.

Correct me if I'm wrong. Do you mean that you want to hide the image inside the blog content itself instead of image cover in entry view? If that so I'm afraid that is it no possible to do so since the blog image is actually reside inside the content itself and will be next to impossible to remove it without retaining the blog formatting.

If you mean to remove the blog image inside the content in frontpage view, you can do so by going to your backend > easyblog > settings > layout > truncation, http://screencast.com/t/K2OVrN60G3L0 .

Hope these help and please advise.
·
Tuesday, 20 October 2015 17:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello, The feature requested in this thread:

"Do you mean that you want to hide the image inside the blog content itself instead of image cover in entry view?"

... is a feature I would like to see added to a new version of EasyBlog. Similar to what you can see at an existing site I'm re-developing in Joomla - http://variancereconciliation.com/vrs-documentation. There is an image that appears in the listing of blog items - but not in the blog entry itself.
·
Tuesday, 20 October 2015 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Allan,

Easyblog do have this feature but only applicable for blog cover image only, not blog image inside the content.
·
Tuesday, 20 October 2015 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks for providing the solution to remove the blog image from the blog homepage view. Unfortunately, we also want to remove it from the actual blog post. As explained we are only using this feature so that we get the image appearing on Facebook and LinkedIn.

Is it not possible to add a separate image class for the blog image so that we can remove it from the blog content via CSS? In our case the blog image is the same as the first image added to the blog post content so we see that same image twice. We really need to remove it. If it were possible to add a class name to only that first image then we could remove it ourselves in the CSS.

Please advise.
Thanks
·
Thursday, 29 October 2015 19:42
·
0 Likes
·
0 Votes
·
0 Comments
·
I've just realised that your suggestion above removed all images in the introduction visible in the frontpage view, so that doesn't work for us either.

Can you explain how to add the image class name and we'll remove that ourselves via CSS.

Can you also add this as a feature request please? To remove blog cover image from the blog content.

Thanks
·
Thursday, 29 October 2015 19:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Quentin,

I am really sorry for the delay of this reply as it is a weekend for us here. Are you referring to the post cover here? You can actually customize the theme file if you do not want the post cover to appear on the listing / entry pages.

/components/com_easyblog/themes/wireframe/blogs/latest/default.main.php and remove line 135 - 141


<?php if (in_array($post->getType(), array('photo', 'standard', 'twitter', 'email', 'link'))) { ?>
<div class="eb-post-body type-<?php echo $post->posttype; ?>">
<?php echo $this->output('site/blogs/latest/post.cover', array('post' => $post)); ?>

<?php echo $post->getIntro();?>
</div>
<?php } ?>


/components/com_easyblog/themes/wireframe/blogs/entry/default.php and remove line 157


<?php echo $this->output('site/blogs/entry/post.cover', array('post' => $post)); ?>


By the way, in the latest version of EasyBlog, you no longer need to set a post cover if all you want to achieve is for it to pick up the image to submit to Facebook. It will now be intelligent enough to scan for the first image in the blog post and use that image on the social media sites.
·
Sunday, 01 November 2015 16:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks for your reply. I commented out the lines you mention above. The post cover no longer appears in the single post view BUT IT STILL APPEARS ON THE BLOG FRONTPAGE VIEW.

Please advise. I really need to remove it. Can you answer my question about adding a class name to the image? That might be a better solution since I suspect that when we upgrade the component these changes will be overwritten, correct?
·
Wednesday, 04 November 2015 02:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

For the frontpage view, you can edit this file: ../components/com_easyblog/themes/wireframe/blogs/latest/default.main.php and remove this line:


<?php echo $this->output('site/blogs/latest/post.cover', array('post' => $post)); ?>


If you want to prevent overwrite on the modified file, you can use the template override method which you can refer it here: http://stackideas.com/docs/easyblog/administrators/customizations/template-overriding

Hope this helps.
·
Wednesday, 04 November 2015 12:11
·
0 Likes
·
0 Votes
·
0 Comments
·
I am disappointed with your response. Have you even read this forum post properly?? Can you see that you already provided this solution above? I have ALREADY commented out that line.

It's 2 weeks since I opened this post and I still have not been able to resolve this issue.

I ask again (third time): How do you add a class name for the POST COVER IMAGE?

Please advise.
·
Wednesday, 04 November 2015 17:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I'm sorry for the confusion earlier. You can add a class name for post cover image in this file: ../components/com_easyblog/themes/wireframe/blogs/latest/post.cover.php on line 17. We already have a class name for that as you can see on that line: eb-post-image. Hope this helps.
·
Wednesday, 04 November 2015 17:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks for your prompt reply.

That class name is actually on the <a> link, but looking at it again I see I can use that to hide the post image.

Any ideas why your solution above does not work? I refer to removing the line you mention here:
../components/com_easyblog/themes/wireframe/blogs/latest/default.main.php
Also - in an earlier post I was told to remove more than just that line. I was told to remove lines line 135 - 141. Why the different advice? What is correct? And why is it that neither of them work?
·
Wednesday, 04 November 2015 18:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

..Also - in an earlier post I was told to remove more than just that line. I was told to remove lines line 135 - 141. Why the different advice? What is correct? And why is it that neither of them work?


The previous reply will also remove the intro text. My solution is only remove the post cover. It is not working most probably is because you have a block image in your post and that image will be included in the post intro. And from your last reply, it seems both does not work.

Can you re-provide your backend and FTP access so that we can check on it. We have lost the previous access due to we have upgraded our forum recently. Sorry for the inconvenience.
·
Wednesday, 04 November 2015 18:13
·
0 Likes
·
0 Votes
·
0 Comments
·
I reinstated the lines I removed since it was clear to me that it wasn't going to work.

Using the CSS method, targetting the post cover class did not work:

.eb-post-image{
display:none;
}

Adding the following did work:

div.eb-post-thumb{
display:none;
}
·
Wednesday, 04 November 2015 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Ah, I see. You can also use eb-post-thumb. The eb-post-image didn't work because I believe you have enabled this option in your backend: http://screencast.com/t/Y9276CaG6LRj hence it will use this class eb-post-image-cover instead.
·
Wednesday, 04 November 2015 18:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post