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.
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.
First, 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. 🙏
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.
I’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:
To the blogroll on a member’s profile here:
What do you think my next step should be?
Please copy the contents of this file
And 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.
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.
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?
You must be logged in to reply to this topic.