VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: ShafanHameed on May 21, 2021, 12:13:29 PM

Title: Category Title Issue
Post by: ShafanHameed on May 21, 2021, 12:13:29 PM
Hi, First of all my apologies if its being asked. I tried to find it in form but couldn't get any solution.
I am having an issue in category title while using '&' in the title. It is showing sum numbers like $#3B; instead of &.
The actual title is
<title>Computer & IT</title>

But it is showing title like this
<title>Computer &amp;#38; IT</title>

how can i solve this issue ?

Any help will be appreciated. Thanks in advance
Title: Re: Category Title Issue
Post by: Jörgen on May 21, 2021, 12:18:32 PM
I think this is a very old and resolved issue.

What VM, Joomla and PHP version ?

What template are You using ?

Jörgen @ Kreativ Fotografi
Title: Re: Category Title Issue
Post by: jenkinhill on May 21, 2021, 16:07:04 PM
I just tested this in VirtueMart 3.8.9 10473 with VMBeez template. Ampersands in category titles displayed correctly.
eg Fish & chips  ( <hi>Fish & chips</h1> )

I do remember an old version (years ago) where & did not always work but &amp did display as &. That was obviously fixed.
Title: Re: Category Title Issue
Post by: ShafanHameed on May 22, 2021, 00:49:32 AM
HI, i am using
Joomla 3.9.26
VirtueMart 3.8.8 10472
Php 7.3.27
Template "Its a custom build template but template is not the problem as it is tested in both Protostar & Beez3. Same issue in both templates as well".
Title: Re: Category Title Issue
Post by: Jörgen on May 22, 2021, 09:39:26 AM
Please be sure that you have turned off ALL template overrides, css changes and also any plugins that manipulate the html.

What administrator template are you using in backend ?

If You say that you are not using overrides, then there must be something wrong with your character set in database. It works for everyone else.

Jörgen @ Kreativ Fotografi
Title: Re: Category Title Issue
Post by: ShafanHameed on May 22, 2021, 22:01:49 PM
Well i am using overrides for virtuemart but just for the Css and positioning purpose nothing else like i have added bootstrap grid and change the positions required according to the design and then placed the VM codes to those positions.