Hello @silumant and @mugatea ,
The answer to your questions is a CSS exercise. I’d need to see your pages to tell you the exact CSS you’d need.
If you want to try yourself, here are 2 changes that might work:
display_tag="span"
- Add the following CSS in your Appearance?>?Customize?>?Additional CSS.
.wporg-box { display: inline !important; }
You can also replace wporg-box
with any other class you want and even add a custom CSS class to your display tag in the code.
Example:
$o = '<div class="my-cool-css-class">';
$o .= '<' . $t . ' class="my-other-cool-css-class">' . esc_html__( $current_user->user_firstname ) . ''
The beauty (and ugliness) of CSS is there are (too) many ways you can style your content. The good news is there are tons of docs on CSS (and of course AI chatbots) ??
Good luck.