How to remove blog post widgets
This support request was posted in Smart by Smokingone
- Smokingone August 14, 2018 at 12:19 pm
Hello,
I have disabled comments on blog posts on website but I still see some widgets at the bottom of posts (zero comments bubble, tag etc)
How do I remove these? I cant find options in settings I wondered if you could possibly supply some code to do this?
Thank youJuanfra Aldasoro August 14, 2018 at 1:25 pmHi,
Thank you for writing. I hope you’re doing well.
Where is that you need to remove that? Are you using the blocks element from the page builder?
Thanks,
Juan.Juanfra Aldasoro August 15, 2018 at 3:23 pmHi,
Thank you for the follow-up.
Ideally, if you have disabled comments, that shouldn’t be showing over there. Perhaps there’s a conflict with any of the many plugins you’re using.
In any case, please try adding the following code to your functions.php file:
Best,
Juan.Smokingone August 16, 2018 at 12:03 pmHi,
Thanks for comment re plugins – I went in and deleted unnecessary ones now only 24 which I read is fine and there are no more errors on that front 🙂
Re the PHP code… where exactly in the functions.php file should I insert it?
Because I tried various positions in the file and I get a “parse error” now when I try to access the blog. Blog is inaccessible now.
I also tried reverting to the original php file and I still get this error. Have tried purging caches etc error is still there.
I use the child theme – should the php code go in child functions. php or main functions.php?Thanks
Smokingone August 16, 2018 at 12:05 pmOops spoke to soon – Blog is back now so I guess there was a delay.
Please however advise on where in the functions file, and which one (child or not), i should insert the code..Thanks!
Juanfra Aldasoro August 16, 2018 at 1:01 pmHi,
Thanks for the follow-up.
You can put that at the end of the file, being sure that is not messing with any other function.
Please, be sure that you don’t include the php opening tag if not required.
Best,
Juan.Smokingone August 17, 2018 at 3:28 pmHi,
Thanks the code worked for the comments box!
There is still a weird folder icon. How can I get rid of it?Thanks
Juanfra Aldasoro August 17, 2018 at 3:43 pmHi,
Thanks for the follow-up.
I assume you refer to the post format icon, it’s showing that is a normal post.
You can add the following CSS to hide that:
.entry-footer .post-format-wrapper { display: none; }
Best,
Juan.
This topic is marked as resolved
Only the topic author can re-open this thread.