News:

Support the VirtueMart project and become a member

Main Menu

Frontpage change image size

Started by robin466, January 02, 2017, 13:19:13 PM

Previous topic - Next topic

robin466

Hi Guys,

i have a question about the frontpage. right now i have two categories which have thier own sub categories. But i want those two top categories displayed big at the front page  with large images.
i know that if i change the thumpnail size at configuration -> Templates -> width height  the images size change but this also changes the size of the other categories witch i don't want to change.

so my question is how can i change the size of only those two category images?

VM version i am  using is : 3.0.16
Website i am talking about : http://www.rn-motoren.nl/index.php/webshop-1 but it's offline right now so if you want to take a look i will message you a account to log in to
PHP: 5.6
VM Template : Horme_3

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

robin466

#2
hi Jenkinhill,

i use firebug and i see the code  but with override you mean  rewrite  the code with the change i made.
Or just change code in the original file.


img{
  max-width: 100%;
  height: auto;
}


i changed it to

img{
  max-width: 100%;
  height: 500px;
}

didn't get the effect i wished for haha.  i propably do something wrong.
i am not a expert on thisbut have some experience so if someone could give me a lead i will be able to finish it :D

robin466

changing the image file did the trick in firebug but where to edit this  in VM.  do you guys have any suggestions ?

            <img src="/images/stories/virtuemart/category/resized/team-traction-control-gsxr600-2014-small_500x500.jpg" alt="team-traction-control-gsxr600-2014-small">         NEW
    <img src="/images/stories/virtuemart/category/resized/team-traction-control-gsxr600-2014-small_0x150.jpg" alt="team-traction-control-gsxr600-2014-small">  OLD

jenkinhill

You template will use overrides for layout which you will find in templates/[your Horme template]/html/com_virtuemart/

As it is a commercial template you should ask Spyros on https://www.olympianthemes.com/forum.html  for specific help.

See http://forum.virtuemart.net/index.php?topic=108212.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

robin466

yeah but isn't the image size defined by Virtue mart ?

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

robin466

yeah i have seen that topic and i tried my best. but i just don't figure it out where to post the code. any ideas?