Post by santura » Wed Feb 24, 2016 9:48 am

I have a narrow image in my banner, and I would like the banner to fit the image, otherwise the image gets really small on small devices.

Does anyone know how I can do this?

You can see what I mean here http://webrecipemanager.com/bm/
Last edited by santura on Mon Jun 27, 2016 10:54 am, edited 1 time in total.

New member

Posts

Joined
Fri Jun 14, 2013 8:33 pm

Post by moused72 » Wed Feb 24, 2016 11:11 am

if you want your image with 100% on your banner, you can edit:
catalog/view/javascrip/jquery/owl-carousel/owl.carousel.css

found:

Code: Select all

.owl-carousel {
	margin: 0 0 20px;
	background: #fff;
	direction: ltr !important;
	z-index: 1;
}
add after

Code: Select all

.owl-carousel  img{
	 width: 100%;
}

18 extra positions FREE, Unlimit style color for default theme FREE, Vietnamese Language, vietxuangas.com.vn


Active Member

Posts

Joined
Mon Feb 15, 2016 9:46 am

Post by santura » Wed Feb 24, 2016 11:19 am

Unfortunately, that made no difference.

New member

Posts

Joined
Fri Jun 14, 2013 8:33 pm

Post by Randem » Wed Feb 24, 2016 11:47 am

Hi santura,

You probably need to inform about what banner layout you are using. I.E. carousel etc
If you are using a custom theme or not. More information... everyone would be just guessing...

http://www.randemsystems.com/support/op ... rt-system/

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by santura » Wed Feb 24, 2016 2:17 pm

I have attached my banner settings, I am using a custom theme, but have made no changes to the banner.

Attachments

Screenshot_4.jpg

Screenshot_4.jpg (49.12 KiB) Viewed 4843 times


New member

Posts

Joined
Fri Jun 14, 2013 8:33 pm

Post by santura » Sun Jun 26, 2016 4:31 pm

Ok apparently my last reply didn't do the job.

Maybe it would be easier to visit http://barbaramclennan.com to see the issue.

I am using the default slideshow provided with version 2.0.2.0 which is obviously built for landscape images.

I would really like to know how to make the slideshow fit portrait images like mine.

New member

Posts

Joined
Fri Jun 14, 2013 8:33 pm

Post by straightlight » Sun Jun 26, 2016 10:47 pm

Since you're using a custom theme, contact the theme developer to make the addition to the theme for you.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by santura » Tue Jun 28, 2016 10:14 am

I solved this by placing a div with the correct width around the slideshow div in

catalog\view\theme\default\template\module\slideshow.tpl

New member

Posts

Joined
Fri Jun 14, 2013 8:33 pm
Who is online

Users browsing this forum: No registered users and 104 guests