• We are having some issue displaying before and after HTML code in front of the user ID and AVATAR fields. No matter what we put there, even after rebuilding cache, it just ignores anything we include. Other fields seem to display before and after HTML just fine, such as Display Name or other custom fields. Is there a reason why one field would not show this but other’s would? I have PRO version add-on etc…

    Thanks!

    https://www.ads-software.com/plugins/amr-users/

Viewing 1 replies (of 1 total)
  • Plugin Author anmari

    (@anmari)

    Hi Shannan,

    It’s better to think of it as before/after text. They came about because people wanted to do things like Lastname, Firstname in the same column. So have a ‘, ‘ as the before in the Firstname, worked well. Not intended for styling or html -will appear in the csv extract.

    For styling, much better practice is to use the many css selectors offered in the html and add the css to style a column rather. See the screenshot at the bottom of this page: https://wpusersplugin.com/3789/adding-custom-css-to-a-wordpress-website-for-plugin-html/

    the avatar use the wp avatar function. You can change the size in the userlist general settings. And you can use the avatar class to style the avatar, or avatar plugins to otherwise change the avatar.
    https://i.imgur.com/l0OLa5z.png

    Re the id: There is some oddities with the ‘id’ – it doesn’t work well displayed, due to special code around it. Technically a bug I guess, but very low priority since most people do not display the id and for admin, if you simply include an ‘edit user’ link you can ‘hover’ over a the link field and see the id. Energies are going into rewriting the query/caching rather than fixing that.

Viewing 1 replies (of 1 total)
  • The topic ‘Before and After HTML’ is closed to new replies.