Apart from this there is bug/ problem as in I had enable_name to true in the post and hide the usernames from the post by adding some css rules in the Customize > Theme > Edit CSS/ HTML.
//Hides the username from the Post page
.names .username {
display: none!important;
}
These settings was working fine but full names also being hidden out for some of the users
Hence my “depending on your website’s settings”, but that’s on me, I should have started with the default settings, with which the following CSS should work:
.names .first.username {
display: none;
}
As for the headline below the full name, try this:
CSS settings are working perfectly fine, but I feel issues are different as for some users both username and full name is visible in the post categories whereas for few users only username is visible (from the database only the usernames is getting fetched - checked it via page source).
Apart from this Profile headline css code is perfect but how to fetch the details from the database as in it is not getting fetched from the database so there is no question to making it visible.
Kindly help me out with this
To clarify more all the accounts have both full names and username(verified by visiting their profiles). It’s just that in posts pages full names of few accounts is not getting fetched.
If you have prioritize username in ux enabled then usernames will be shown on each post if the user’s username and full name are the same.
And you’ll be stuck if you want to hide usernames with CSS only because you can’t target previous elements.
For example, you’ll have two posts that have:
username
post content
username full-name
post content
And you won’t be able to hide usernames only for users that have a full name different from their username, because the username is displayed before the full name.
It’s a bit complicated to explain
So you want a CSS-only solution, you’d need to disable prioritize username in ux and use the following CSS:
Thank you so much for the effort you are making but both this code is not working, even I have added !important in css but still it’s not working.
and for the profile headline it is not coming from the backend see the below snapshot for reference
Please be as precise as possible, because your request is slightly confusing.
By “after”, do you mean “below”?
Your registration form contains a “Profile Headline” field, but I suspect it has nothing to do really with what you ask. You are asking, to my understanding, to put a user’s title below their username
I tried my code from my message on your forum and it works:
I already mentioned that I wanted to Show Profile Headline, if this headline can be shown below the full name that will be awesome, just like in the second picture you have sent in the place of the ‘Internship Secured’ profile headline should be visible.