VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: foo-wing.li on June 25, 2013, 13:30:03 PM

Title: How to edit the online shop homepage template?
Post by: foo-wing.li on June 25, 2013, 13:30:03 PM
Hi,

I am using VM 2.0 and Joomla 2.5 and I am having trouble locating the VM homepage component. Normally this would be located in one of the template folders but I can't find and work out which one.

Can someone please tell me where it is?

All I want to do is changge the Catergories title <h2> tag to a <h1> tag and the Featured Products title <h4> tag to a <h2> tag on the store front.

Or where is the "Layout for your home page" default.php file? Or how can I make my own "Layout for your home page"?

Thanks
Title: Re: How to edit the online shop homepage template?
Post by: foo-wing.li on June 25, 2013, 15:31:35 PM
Ok I have found out myself how to edit the VM "Home Page" product "Categories" title tag from a <h2> to a <h1>.
Solution
The file is located components/com_vitruemart/views/virtuemart/default_categories.php.
Title: Re: How to edit the online shop homepage template?
Post by: jenkinhill on June 25, 2013, 15:34:13 PM
Make sure you use the edited file as a template override.

http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides
Title: Re: How to edit the online shop homepage template?
Post by: foo-wing.li on June 25, 2013, 16:47:52 PM
Thanks Jenkinhill I never knew that I have to do template overrides. This does make sense but it is a bit of hassle. I haven't tried to do template overrides yet but I will give it a go.

What about the stylesheets? Do I have to worry about modifying the CSS file for VM and placing this into the overrides folder? Or should I just use my template css files to override VM stylesheet?

Thanks again
Title: Re: How to edit the online shop homepage template?
Post by: jenkinhill on June 25, 2013, 17:16:28 PM
Add css overrides to your Joomla template css or make a custom.css file & add a link to that file into your Joomla template's index.php