Page 1 of 1

Add three images after the homepage banner

Posted: Sun Sep 16, 2018 3:13 pm
by dani888
Hello
Can be added three images after banner
For the theme http://www.spearthemes.com/oc-light/
Or default theme opencart 3.0.2.0
I understand that it is difficult to add images to themes.
There may be an easier way to add images.
It's right to add html content modules or it's not a safe way.
The 3 images also have a hover effect.
Thank you

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 4:19 pm
by xxvirusxx

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 4:56 pm
by dani888
Hello
This module is good or I need to install another module
Thank you

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 5:14 pm
by xxvirusxx
Yes.

And as an example/demo you can add this:

Code: Select all

<div class="beffect">
  <a href="#"><img src="you_image_location.jpg"></a>
  </div>
and on you theme css

Code: Select all

.beffect{
    position: relative;
    overflow: hidden;
}
.beffect img {
    max-width: 100%;
    transition: all 0.5s;
}
.beffect a:hover::before {
    border: 0 solid rgba(255, 255, 255, 0.7);
}
.beffect a::before {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    border: 50px solid rgba(255, 255, 255, 0);
    top: 0;
    left: 0;
    transition: all 0.5s ease-in-out;
}
.beffect a:hover::after {
    transform: scale(0.5);
    opacity: 0;
    transition-delay: 0.1s;
}
.beffect a::after {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    opacity: 0.5;
    border: 30px solid #fff;
    top: 0;
    left: 0;
    transform: scale(0);
    transition: all 0.3s ease-in-out;
    transition-delay: 0s;
}

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 5:26 pm
by dani888
Ok
Thank you

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 7:12 pm
by dani888
I made the changes but maybe I did not do something right
When I insert the image it works from the module.
When I write code it does not appear exactly what I write
source image C:\xampp\htdocs\opencart\image\catalog\demo\canon_eos_5d_2.jpg
<img style="width: 408.525px; height: 375.1px;" src="http://localhost/opencart/image/catalog ... s_5d_2.jpg">
Thank you

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 7:41 pm
by khnaz35
dani888 wrote:
Sun Sep 16, 2018 7:12 pm
I made the changes but maybe I did not do something right
When I insert the image it works from the module.
When I write code it does not appear exactly what I write
source image C:\xampp\htdocs\opencart\image\catalog\demo\canon_eos_5d_2.jpg
<img style="width: 408.525px; height: 375.1px;" src="http://localhost/opencart/image/catalog ... s_5d_2.jpg">
Thank you
did you update your theme file first ?
you can add <style> </style> direct to your page as well

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 7:56 pm
by dani888
I gave refresh

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 7:57 pm
by khnaz35
dani888 wrote:
Sun Sep 16, 2018 7:56 pm
I gave refresh
Does it help?

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 8:05 pm
by dani888
Not the same result

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 8:08 pm
by xxvirusxx
Paste that code using code view </> , and don`t paste as text.....
After you pasted the code, press again on code view, then save

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 8:18 pm
by khnaz35
xxvirusxx wrote:
Sun Sep 16, 2018 8:08 pm
Paste that code using code view </> , and don`t paste as text.....
After you pasted the code, press again on code view, then save
its look like he didn't update his CSS sheet and just trying to achieve it direct without mentioning div class

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 8:36 pm
by dani888
Now it works
I added the first picture

Re: Add three images after the homepage banner

Posted: Sun Sep 16, 2018 8:46 pm
by khnaz35
dani888 wrote:
Sun Sep 16, 2018 8:36 pm
Now it works
I added the first picture
Great so don't forget to mention the step here as well in case if some have same problem & Mark your post as resolved

Thanks

Re: Add three images after the homepage banner

Posted: Mon Sep 17, 2018 2:21 am
by IP_CAM
Great so don't forget to mention the step here

Well, anyone should know, that HTML Code needs to be entered in SOURCE MODE,
but sure not in WYSIWYG (What you see is what you get) Mode, to make such work. :'(
It works this way since 'MS FrontPage 95' and similar WYSIWYG HTML Editors exist,
so there is nothing really new about this... ;)
Still, I usually mention this, if I make such a Posting, just to make sure, since more
and more OC Newbies never played around with (html) Code before. ::)
Ernie

Re: Add three images after the homepage banner

Posted: Mon Sep 17, 2018 5:59 pm
by paulfeakins
dani888 wrote:
Sun Sep 16, 2018 7:12 pm
I did not do something right
dani888 wrote:
Sun Sep 16, 2018 7:12 pm
C:\
Correct, you used Windows :crazy: