Font Awesome icon in language override

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
User avatar
CyrusXxX
Joomla! Intern
Joomla! Intern
Posts: 79
Joined: Wed Oct 04, 2017 6:23 am
Location: Belgrade Serbia
Contact:

Font Awesome icon in language override

Post by CyrusXxX » Thu Aug 09, 2018 8:30 pm

Hello I have been playing with overrides and I decided to make language overrides for pagination Next and Previous Text buttons but the issue is when I make language override using for example:

Code: Select all

<i title="Next article" class="fa fa-fast-forward"></i>
or
plain

Code: Select all

<i class="fa fa-address-book" aria-hidden="true"></i>
I get the icon but also get "> displayed in front of it.

See the image in attachment for clarification.

What am I doing wrong here?

Thank you!
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24806
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Font Awesome icon in language override

Post by Per Yngve Berg » Thu Aug 09, 2018 9:06 pm

The issue is quotes inside a quoted string. Use single quotes, as double quotes are used around the language string.

User avatar
CyrusXxX
Joomla! Intern
Joomla! Intern
Posts: 79
Joined: Wed Oct 04, 2017 6:23 am
Location: Belgrade Serbia
Contact:

Re: Font Awesome icon in language override

Post by CyrusXxX » Fri Aug 24, 2018 8:07 pm

Per Yngve Berg wrote:
Thu Aug 09, 2018 9:06 pm
The issue is quotes inside a quoted string. Use single quotes, as double quotes are used around the language string.
Thank you mr. Per for quick answer, but if I use single quotes inside language override in this particular case then font awesome icon is not displayed.

What bothers me is on half of the site these icons are displayed properly when I create them via language override and on some places they are not in this case pagination.

Why is pagination so different...

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24806
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Font Awesome icon in language override

Post by Per Yngve Berg » Fri Aug 24, 2018 8:30 pm

Can be CSS.

Have you inspected the element with your browser's diagnostic tools?

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1188
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: Font Awesome icon in language override

Post by SharkyKZ » Fri Aug 24, 2018 9:12 pm

Use layout overrides, not language overrides.


Post Reply

Return to “Language - Joomla! 3.x”