Align Private Message link to the right of user role

Hello,
URL: http://yourtechadvisors.com/forums/topic/april-editing/#post-5716
As you can see, the Private Message link is in between the username and the user role, I cannot figure out how to move the Private Message link to the other side of the user role, could you please tell me how to do this? I think it is because I have a custom setup where the user role is using the same action as the Private Message link, and since mu-plugins are executed earlier, the link takes priority. Suggestions?

Private Message link code in mu-plugin.
https://gist.github.com/tech55541/5df70fdc7a88f7ef9af93bfcaee196a7
User roles code in functions.php.
https://gist.github.com/tech55541/537143509a06cd13eeb74e6addf3f86c

Thanks,
Alex :smiley:

  • Rupok
    • Support Ninja

    Hi Alex, hope you had a wonderful day.

    Good to see you after long. I've fixed it on your site with the following custom Code:

    .bbp-pm-link {
      margin-left: 70px;
      margin-top: 24px;
      position: absolute;
    }
    .bbp-staff-label {
      padding: 0 10px;
    }

    Please note, last 3 lines are for showing some space in user role blue box. It was looking congested so I added this padding to make it look better. You can remove it if you want. I've also adjusted the horizontal alignment of Private Message link and User role box.

    Can you please check and confirm?

    Have a nice day. Cheers!
    Rupok

  • Alex Stine
    • System Administrator

    Hello,
    I take that back, it is not resolved. The CSS moved it visually, but screen readers still read the link first. Is there a way to give the user role code a higher priority so it is executed before the link? This would insure that the label is put before the link and that it is read right by screen readers. Code is linked above. :slight_smile:

    Thanks,
    Alex :smiley:

  • Rupok
    • Support Ninja

    Hi Alex, hope you had a wonderful day.

    I think moving codes both to MU Plugin or both to functions.php file according to your desired sequence may rearrange the appearance in output. I could try fixing this for you if you sent me FTP credentials. So can you please send me message with FTP access credentials through our secure contact form here: https://premium.wpmudev.org/contact/ ?

    Subject: "Attn: Rupok"
    - FTP Username
    - FTP Password
    - FTP Host
    - Link back to this thread for reference
    - Any other relevant URLs

    Select "I have a different question" for your topic. This and the subject line ensure that it gets assigned to me.

    Have a nice day. Cheers!
    Rupok

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.