php - Insert new class into banner module [OpenCart 1.5.6] -


I need some help with OpenCart banner module. I need to add a new div with a class between class = "content-top" and class = "banner 0". I need this new divan to add a banner group. I try to add this div to banner.tpl, but OpenCart has put each div class = "bannerX" into that new device. Where should I add this device? Thank you

Unfortunately, this is not possible. Not least in normal way.

A brief description: OpenCart requires to provide a banner at banner.tpl each time. So if you insert some code into this template, then it will be shown how many banners are displayed. foreach around the normal / content_top.tpl this new & lt; Div & gt; & Lt; / Div & gt; It may be possible to add , but lead to this problem when different modules are being provided on this situation (like you provide three banners and a slideshow module here). In this case all of them will be attached to such a device.

But if you know that whatever you display in the content_top position is a banner module, then this is the way to do this (edit normal / content_top.tpl ).

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -