VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: antogkez on December 06, 2012, 18:45:37 PM

Title: How to remove span from product title?
Post by: antogkez on December 06, 2012, 18:45:37 PM
Hello to everyone!
Can enyone help me how to remove span tag from product title? for ex. if product title is "sleeping couch" the first word "sleeping" has other color from the rest. What i want is to have all words of product title in the same format. It must be some css but i was not able to find and configure. I don't even know if it's from the joomla! template css. The php output is ex. "<span>sleeping</span> couch" for every product title
Thanks in advance!
my versions are:
Joomla! 2.5.7 | VM 2.0.12b
Title: Re: How to remove span from product title?
Post by: bytelord on December 06, 2012, 23:28:13 PM
Hello,

You could use some CSS for that ...

Use firebug to examine you site code and css styling: https://forum.virtuemart.net/index.php?topic=102850.0

Also here some information regarding css styling: http://www.w3schools.com/css/

Regards
Title: Re: How to remove span from product title?
Post by: eNEXTvm on December 07, 2012, 02:12:13 AM
Is it on Gantry based template? If so you can disable it in Gantry configuration.
Title: Re: How to remove span from product title?
Post by: bytelord on December 07, 2012, 05:25:05 AM
Hello,

Just override some attributes on Gantry CSS ... nothing difficult or bad for Gantry...

Also you could just create some template overrides and comment out that spans to don't need for that title, but i easiest way it to parse some css attributes.

Regards
Title: Re: How to remove span from product title?
Post by: antogkez on December 15, 2012, 12:11:30 PM
Thanks both!
i found the css and eliminated it!  8)
looks nice now!

the code to be edited is here:
vmsite-ltr.css
.featured-view .spacer span,.latest-view .spacer span,.topten-view .spacer span,.related-products-view .spacer span,.browse-view .row .product .spacer span{font-size:11px;color:#666;}
Title: Re: How to remove span from product title?
Post by: bytelord on December 15, 2012, 12:12:35 PM
Hello,

You could create a CSS override for that changes under your template header (load a new file e.g. vm.css) and apply all your changes there.

Regards