Tagged: buddyblog
What would you say is the best solution for customizing the post’s css?
Something about my theme rendered the plugin’s CSS styling null so my blog posts (specifically when you view a user’s profile) are formatted basically: each element sits on its own line, aligned left, with no special formatting design or styling.
site: http://www.jrcache.com
Hi Justin,
Welcome to BuddyDev.Since we haven’t provided any css with BuddyBlog, most of the time it takes from the current theme.
If the layout is bad, there is an easy solution. Copy plugin/buddyblog/template/buddyblog/posts.php to your theme/buddyblog/posts.php
and modify it to use your own theme’s article layout.
Hope that helps.
Regards
BrajeshFirst, thanks for the warm welcome!
Back to the issue at hand, now that you bring that up I looked it over and I had described it wrong, it only looks bad when viewed on the profile “Blog” tab.
As seen: http://jrcache.com/m/jr/blog/
So I guess I can rephrase my question now: what would be the best way to formatting the profile blog/article list page? I’d even rather it only show thumbnails and excerpts (280 characters), really.
Side note, I haven’t been using BuddyPress too long but already your plugins and tips have definitely been the best I’ve found. Thanks for your help and thanks for your overall contributions to BP. 🙏
Hi Justin,
Thank you for the kind words.if you are comfortable with PHP, please try the steps I suggested above.
The post loop is a custom WordPress post loop and you can make it look as you need. Please do let me know if you need assistance with the code.
Thank you
BrajeshI’m familiar with PHP and WP but hardly a developer so I need a bit of assistance if you don’t mind. I’ve always worked frontend.
To make it as easy as possible though, I basically want to copy this formatting of the blogroll:
http://jrcache.com/m/mblogTo the blogroll on a member’s profile here:
http://jrcache.com/m/jr/blog/What do you think my next step should be?
Thanks!
Hi Justin,
I had a look at the pages again.In your theme you have a blog-template.php
Please post its content on paste bin and link me. I can extract some section from it and post the new posts.php for you.
Thank you
BrajeshThanks, Brajesh, I really appreciate it.
Here is blog-template.php from my theme: https://pastebin.com/TrxFMub7
Thanks.
Hi Justin,
Please copy the contents of this fileAnd put it in yourtheme/buddyblog/posts.php
Does it work? It will need more changes for adding the editing link. Also, I have left the GhostPool’s pagination. I am not sure if that will work. Please do check that.
Thank you
BrajeshThanks Brajesh
Here is the result: http://jrcache.com/m/jr/blog/
It is no doubt better formatted but has been simplified too much and does not match: http://jrcache.com/m/mblog
There are no thumbnails, post info (date, author, etc), and no excerpts, it gives the full article instead.
Thanks!
Hi Justin,
As you may see, the article loop is being used from ghostpool’s theme.Either I will need access to that file to see how they are fetching the thumbnail or the better option is to contact them and ask them for support.
If it was a normal loop, It should have worked with the thumbnail feature too(and length of text too).
Please contact them and let me know if they are able to help or not?
Thank you
Brajesh
You must be logged in to reply to this topic.