*

Dan Dan

  • ***
  • 40 posts
How can I add id to the search list after every 3rd ad adsense code or banner created with the Advertisement Manager Plugin?
Please help me
In search_gallery.php i have modified the following code:

Code: [Select]
       <?php $c 1?>
      <?php while( osc_has_items() ) { ?>
        <?php stela_draw_item($c'gallery'); ?>
<?php if($c == 3) { ?>
<?php echo stela_banner('item_description'); ?>
<?php ?>
        <?php $c++; ?>
      <?php ?>

It only shows me after the banner only after the first three ads. How do I make this banner repeat after every 3rd ad?

Changes:
I changed
Code: [Select]
<? php if ($ c == 3) {?>with
Code: [Select]
<? php if ($ c% 6 == 0) {?>Now, the adsense code is shown after every 6 ads but disappears from the following pages but the mobile version of the code is not displayed
Give me a solution pls
« Last Edit: November 03, 2019, 03:36:19 PM by Dan Dan »

Marked as best answer by dan.dan on November 06, 2019, 04:50:27 PM
*

MB Themes

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

*

Dan Dan

  • ***
  • 40 posts
Thanks a lot. It works perfectly! ~
Solved