*

Locan

  • ****
  • 166 posts
display banner in different categories for banner plugin
« on: July 06, 2018, 01:25:03 PM »
i want to display banner 1 for category car, display banner 2 for category motor .......
in article page for banner plugin.
can you help me  dear?

Marked as best answer by frosticek on July 06, 2018, 03:03:29 PM
*

MB Themes

Re: display banner in different categories for banner plugin
« Reply #1 on: July 06, 2018, 01:27:48 PM »
In file:
/oc-content/plugins/blog/form/article.php

You can put on place you like:
Code: [Select]
<?php if($blog['i_category'] == 1) { ?>
 banner code for category ID #1

<?php } else if($blog['i_category'] == 2) { ?>
 banner code for category ID #2

<?php } else if($blog['i_category'] == 3) { ?>
 banner code for category ID #3

<?php } else if($blog['i_category'] == 4) { ?>
 banner code for category ID #4

<?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Locan

  • ****
  • 166 posts
Re: display banner in different categories for banner plugin
« Reply #2 on: July 06, 2018, 02:03:20 PM »
thank you so much dear