Pagination Buttons are strange

  • Posts: 3
  • Thank you received: 0
  • Hikashop Business
1 day 17 hours ago #365240

-- HikaShop version -- : 5.1.2
-- Joomla version -- : 5.2.3
-- PHP version -- : 8.2.27
-- Browser(s) name and version -- : Firefox 134.0

Hi there,

I am updating a page on behalf of a customer. I wrote the template myself and loaded the fontawesome into the template differently than Cassiopia does.

The following errors occur in the pagination:
- On page 1 the start and back button is loaded with fontawesome and the next and end button as a PNG file.


- On the intermediate pages, the Start, Back, Next and End buttons are loaded as PNG files. The Start button is actually the Back button PNG.

- On the last page, the Start and Back buttons are loaded as PNG files and the Next and End buttons are loaded with fontawesome. The Start button is actually the Back button PNG.


My suggestion:
Please build the pagination completely on fontawesome. Load fontawesome independently, as not everyone uses fontawesome in their template.

Thanks and greetings
Markus

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83050
  • Thank you received: 13412
  • MODERATOR
1 day 13 hours ago #365241

Hi,

HikaShop already use FontAwesome for the pagination by default.
And regarding the loading of FontAwesome, HikaShop has an hidden option you can set to prevent it from loading it if your template is already loading it:
www.hikashop.com/forum/checkout/905686-font-awesome.html#348204

However, you set the option "Styles on the frontend" to "default" instead of "none" (which is the default value)in the HikaShop configuration page. And in this case, the CSS code in there overrides the pagination with FontAwesome to use images instead.
Now, from what I can see on your website, we're missing some classes in the HTML when the next/previous buttons don't have a link around them, and that's why you don't get the png images instead of the FontAwesome icons on some of them.
We'll add a patch to add the classes in the HTML so that the images of the pagination display properly in such cases.
Still, I think you want to revert to "none" in the "styles for the frontend" option so that it will only use FontAwesome, like you want.

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum