I have been adding the code to my extra.css, not working?Hi,
It's pretty easy to reproduce using the easiest method: use the pseudo-element :before.
Go to the templates of your style and search for "EXTRA.css". Now, add the following inside:
Code:.accountUsername:before { content: "Welcome, "; margin-right: 5px; }
View attachment 101077
It works perfectly for me, strange. Can you give me the name of your site?I have been adding the code to my extra.css, not working?
<a href="{xen:link account}" class="navLink accountPopup NoPopupGadget" rel="Menu"><strong class="accountUsername">{$visitor.username}</strong>
<a href="{xen:link account}" class="navLink accountPopup NoPopupGadget" rel="Menu"><strong class="accountUsername">Welcome, {$visitor.username}</strong>
I've an alternative solution. Go to the templates of your style and search for "navigation_visitor_tab". Then, search this line of code:
Code:<a href="{xen:link account}" class="navLink accountPopup NoPopupGadget" rel="Menu"><strong class="accountUsername">{$visitor.username}</strong>
and replace it with:
Code:<a href="{xen:link account}" class="navLink accountPopup NoPopupGadget" rel="Menu"><strong class="accountUsername">Welcome, {$visitor.username}</strong>
It is strange that it does not work, but it is maybe because you have a custom style.
No, it's more easy for the user to do how I did, because people might want to put this modification only on their custom style and not on all styles. Your modification applies to all styles.Optionally, you can make the welcome text be a phrase so it's not hard-coded.
Admin CP > Appearance > Phrases > Create New Phrase
Prefix it with your site name so you know it's custom and then add _welcome.
Your modification applies to all styles.
I think anyway that it is easier to modify the code in the style for nothing lose by exporting the style, etc. It is better to do like I did, but it is an alternative solution.No, it doesn't, if you only call the custom phrase in the style you want it in.
We use essential cookies to make this site work, and optional cookies to enhance your experience.