Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1212319
    margley
    Participant

    Hi I’m trying to hide only the “@” symbol on user profiles. It’s an H2 element with the class “user-nicename”. I’ve tried the following code:

    h2.user-nicename {
        display: block;
    }
    h2.user-nicename:first-letter { 
        font-size: 0px;
    }

    Unfortunately, it seems to have tied the “@” symbol and first letter together…

    #1212321
    margley
    Participant
    This reply has been marked as private.
    #1212588
    Rupok
    Member

    Hi there,

    Thanks for writing in! Here goes an easy solution for you. Let’s add this under Custom > CSS in the Customizer.

    .buddypress .user-nicename {
      overflow-x: hidden;
      text-indent: -15px;
    }

    Cheers!

    #1218494
    margley
    Participant

    That worked! Now how how to I create some extra space between the profile picture and the text on the right?

    #1218786
    Rue Nel
    Moderator

    Hello There,

    To add some space from the profile picture, please update the code and use this instead:

    .buddypress .user-nicename {
        overflow-x: hidden;
        text-indent: -15px;
        margin-left: 5px !important;
    }
    
    #buddypress span.activity {
        margin-left: 10px;
    }

    Hope this helps.

    #1220237
    margley
    Participant

    That worked! Thank you!

    #1220264
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1212319 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>