*

Nail

  • **
  • 20 posts
Place an advertisement
« on: April 29, 2021, 09:57:39 PM »
Hi. How can I place an advertisement  in the left and right side of the main page. Give me please a simple example of code, which  I must put in the theme settings -advertisement tab. Please...

*

MB Themes

Re: Place an advertisement
« Reply #1 on: April 30, 2021, 10:23:32 AM »
@Nail
This usually require some skills with CSS. You will have to use position:fixed and style everything properly.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nail

  • **
  • 20 posts
Re: Place an advertisement
« Reply #2 on: April 30, 2021, 02:53:21 PM »
Ok. Please give me a little sample code.
For example some picture with link to cool.az
And then I will working with css.

*

Nail

  • **
  • 20 posts
Re: Place an advertisement
« Reply #3 on: April 30, 2021, 03:06:55 PM »
like this. Left and right side banner

*

MB Themes

Re: Place an advertisement
« Reply #4 on: April 30, 2021, 03:29:03 PM »
@Nail
I know what you mean, but you will have to do a work and test it, here is simple tutorial I used on one project.
CSS
Code: [Select]
#banner-body {display:none;position:fixed;top:0px;width:calc((100% - 1044px)/2);background-color:#fff;z-index:1;max-height: 1000px; overflow: hidden;}
#banner-body img {width:auto;height:auto;max-width:initial;max-height:1000px;}
#banner-body.bleft {left:0;}
#banner-body.bright {right:0;}
#banner-body.bleft img {float:right;}
#banner-body.bright img {float:left;}
#body-home #banner-body, #body-search #banner-body, #body-item #banner-body {display:block;}

HTML (added somewhere to body):
Code: [Select]
<div id="banner-body" class="bleft"><img src="link to your image"></div>
<div id="banner-body" class="bright"><img src="link to your image"></div>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nail

  • **
  • 20 posts
Re: Place an advertisement
« Reply #5 on: April 30, 2021, 03:48:32 PM »
Ok. But I thought I have to add some code to theme settings->advertisement tab😂

*

MB Themes

Re: Place an advertisement
« Reply #6 on: April 30, 2021, 05:45:47 PM »
You could put it there as well, but I think better is to not to do that
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nail

  • **
  • 20 posts
Re: Place an advertisement
« Reply #7 on: June 14, 2021, 02:14:12 PM »
Ok. I already place banner. But how can I manage it, for example via Advertisement Manager Plugin or BannerAds plugin?

*

MB Themes

Re: Place an advertisement
« Reply #8 on: June 15, 2021, 08:07:18 AM »
@Nail
you can use mentioned plugin for easier management of adverts.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nail

  • **
  • 20 posts
Re: Place an advertisement
« Reply #9 on: June 15, 2021, 08:16:48 AM »
Ok. Before, I send you a picture with banner in right and left side of main page.
How can I you mentiod plugins with this banner? There is no places for that type of banners. I only can add tish banner directly in code, as you show me before

*

MB Themes

Re: Place an advertisement
« Reply #10 on: June 15, 2021, 10:12:17 AM »
@Nail
Your question is not clear.
You may get inspired here:
https://www.w3schools.com/tags/tag_img.asp
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots