This topic has 5 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #135274
     dlx
    Participant

    Hello 7th Queen!

    Like shown on http://seventhqueen.com/themes/kleo/members/ and http://seventhqueen.com/themes/kleo/members/demo/ the latest activity is shown in the members listing and in the title of the member´s page.

    This looks nice when members post a few words, but if they post a lot of characters this can break the layout completely.

    Because of this I would like to stop the display of the latest activity. Is there a hook I can add to the functions.php?

    Best regards,
    Jan

    Attachments:
    You must be logged in to view attached files.
    #135318
     Radu
    Moderator

    Hi,

    use this css

    COPY CODE
    
    body.directory.members #buddypress #members-list span.update {
        display: none !important;
    }
    
    
    #item-header-content #latest-update {
        display: none;
    }
    

    the css will be added to wp-admin -> theme options -> general settings -> quick css

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #135328
     dlx
    Participant

    Hello Radu,

    thanks for your help! I was asking for a solution for the functions.php because of an other reason: Badwords or Spam that´s posted by members. For the displays in the activity stream I already have a solution (Content Censor Plugin) that works fine but does not filter the displays in the member listing or member profile.

    So I need an other solution to remove the content from the site – and remove it from the html also.

    Is there anything I can edit in the (child-)template or add to the functions.php?
    Hope you have an idea for this!

    Best regards,
    Jan

    #135463
     Radu
    Moderator

    Hi,

    The censorship plugin should work because we are using the default BuddyPress logic.

    You can modify the templates by copying them on child theme in same directory structure

    members directory loop : /wp-content/themes/kleo/buddypress/members/members-loop.php

    member profile layout : /wp-content/themes/kleo/buddypress/members/single/member-header.php

    So you can copy them on child /wp-content/themes/kleo/buddypress/members and /wp-content/themes/kleo/buddypress/members/single/

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution
    #136096
     dlx
    Participant

    Hi Radu!

    Thanks for your help – this worked perfectly!
    Also the file cover-image-header.php in /wp-content/themes/kleo/buddypress/members/single/ had to be changed (maybe this helps if anybody else has the same problem).

    Have a great day!
    Jan

    #136132
     Radu
    Moderator

    You’re welcome

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?