Post by eddy-r3 » Thu Jun 04, 2015 3:48 pm

Hey guys, trying to setup a HTML module to include 2 responsive image banners on the homepage, everytime i add this though, for some reason some inline CSS gets added to my code....

I put this in :

Code: Select all

<div class="col-md-6">
<img src="/banners/banner1.jpg" class="img-responsive" />
</div>

<div class="col-md-6">
<img src="/banners/banner2.jpg" class="img-responsive" />
</div>
And this comes out :

Code: Select all

<div class="col-md-6">
<img src="/banners/banner1.jpg" class="img-responsive" width="0" height="0" style="display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 0px 0px;">
</div>

<div class="col-md-6">
<img src="/banners/banner2.jpg" class="img-responsive" width="0" height="0" style="display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 0px 0px;">
</div>
Any ideas why?!

Many thanks

Active Member

Posts

Joined
Tue Jan 31, 2012 4:46 am

Post by viethemes » Thu Jun 04, 2015 8:29 pm

I have tried to add the code in HTML Module in my local store. But I don't see any problem.
Could you send me a admin account via PM, so I can take a look at it closer?

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by eddy-r3 » Thu Jun 04, 2015 8:40 pm

Sure thing, PM on its way :)

Active Member

Posts

Joined
Tue Jan 31, 2012 4:46 am

Post by D3MO » Thu Jun 04, 2015 8:49 pm

use code view to add it not html

eddy-r3 wrote:Hey guys, trying to setup a HTML module to include 2 responsive image banners on the homepage, everytime i add this though, for some reason some inline CSS gets added to my code....

I put this in :

Code: Select all

<div class="col-md-6">
<img src="/banners/banner1.jpg" class="img-responsive" />
</div>

<div class="col-md-6">
<img src="/banners/banner2.jpg" class="img-responsive" />
</div>
And this comes out :

Code: Select all

<div class="col-md-6">
<img src="/banners/banner1.jpg" class="img-responsive" width="0" height="0" style="display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 0px 0px;">
</div>

<div class="col-md-6">
<img src="/banners/banner2.jpg" class="img-responsive" width="0" height="0" style="display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 0px 0px;">
</div>
Any ideas why?!

Many thanks

Opencart Expert | voldemaras@gmail.com

Extensions for Opencart @ https://www.opencartextensions.eu / or Opencart Marketplace

Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT


User avatar
Active Member

Posts

Joined
Mon Apr 04, 2011 6:57 am

Post by eddy-r3 » Thu Jun 04, 2015 8:59 pm

Yeah i done it in Code View, still add's in that inline CSS for some reason, no idea why! :(

Active Member

Posts

Joined
Tue Jan 31, 2012 4:46 am

Post by viethemes » Thu Jun 04, 2015 9:07 pm

Hi,
I don't see any problem in your store. You can see the attached image here.

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by eddy-r3 » Thu Jun 04, 2015 9:30 pm

Wow, they're classed as "ads"? I had ad-block on, and it hid them!!!

How strange!! LOL

Thanks all that replied, it only clicked when you posted the screenshot and thought it MUST be my PC...and thought straight away, ad block.

Thanks again guys!

Active Member

Posts

Joined
Tue Jan 31, 2012 4:46 am

Post by viethemes » Thu Jun 04, 2015 11:59 pm

Glad to hear that the problem is solved :)

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm

Who is online

Users browsing this forum: No registered users and 6 guests