BuddyDev

Search

BuddyBlog Post Formatting

Tagged: 

  • Participant
    Level: Initiated
    Posts: 4
    Justin on #8807

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 21520
    Brajesh Singh on #8813

    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
    Brajesh

  • Participant
    Level: Initiated
    Posts: 4
    Justin on #8826

    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. 🙏

  • Keymaster
    (BuddyDev Team)
    Posts: 21520
    Brajesh Singh on #8899

    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
    Brajesh

  • Participant
    Level: Initiated
    Posts: 4
    Justin on #8918

    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:
    http://jrcache.com/m/mblog

    To the blogroll on a member’s profile here:
    http://jrcache.com/m/jr/blog/

    What do you think my next step should be?

    Thanks!

  • Keymaster
    (BuddyDev Team)
    Posts: 21520
    Brajesh Singh on #9002

    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
    Brajesh

  • Participant
    Level: Initiated
    Posts: 4
    Justin on #9007

    Thanks, Brajesh, I really appreciate it.

    Here is blog-template.php from my theme: https://pastebin.com/TrxFMub7

    Thanks.

  • Keymaster
    (BuddyDev Team)
    Posts: 21520
    Brajesh Singh on #9011

    Hi Justin,
    Please copy the contents of this file

    https://pastebin.com/nnbiwA58

    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.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 4
    Justin on #9032

    Thanks 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!

  • Keymaster
    (BuddyDev Team)
    Posts: 21520
    Brajesh Singh on #9035

    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.

This topic is: not resolved