Advertisement:

Author Topic: Help with ad heading, how to add a link in the code?  (Read 525 times)

Kol9

  • Newbie
  • *
  • Posts: 16
Help with ad heading, how to add a link in the code?
« on: January 23, 2019, 04:33:00 pm »
I do not work category headings, when I click on any category, it is not transferred to ads. I looked at the code and do not understand how and where to add links categories. What would a person click on the category (cars) and transferred it to the ads. Who can help me with ideas. I posted a couple of screenshots.

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Help with ad heading, how to add a link in the code?
« Reply #1 on: January 23, 2019, 06:43:53 pm »
Hello,

What theme do you use? Can you post the full code which you use to show categories?

Thanks, regards.

Kol9

  • Newbie
  • *
  • Posts: 16
Re: Help with ad heading, how to add a link in the code?
« Reply #2 on: January 23, 2019, 09:20:01 pm »
Patricia theme.
Code categories I provided below.
<!-- BIG RIGHT COLUMN - MAIN COLUMN -->
    <div id="main-new">


      <?php osc_goto_first_category(); ?>
      <?php $search_params = patricia_search_params(); ?>
      <?php $search_params['sPriceMin'] = ''; ?>
      <?php $search_params['sPriceMax'] = ''; ?>

      <div id="home-cat">
        <ul class="top">
          <?php $i = 1; ?>
          <?php $category_icons = array(1 => 'fa-gavel', 2 => 'fa-car', 3 => 'fa-book', 4 => 'fa-home', 5 => 'fa-wrench', 6 => 'fa-music', 7 => 'fa-heart', 8 => 'fa-briefcase', 999 => 'fa-soccer-ball-o'); ?>

         <?php while ( osc_has_categories() ) { ?>
            <li <?php if($i > 12) { ?>style="display:none;"<?php } ?>>
              <a id="cat-<?php echo osc_category_id(); ?>" href="#ct<?php echo osc_category_id(); ?>">
                <div class="name"><?php echo osc_category_name(); ?></div>
                <div class="img">
                  <?php if(osc_get_preference('cat_icons', 'patricia_theme') == 1) { ?>
                    <?php
                      if(osc_category_field('s_icon') <> '') {
                        $icon = osc_category_field('s_icon');
                      } else {
                        if($category_icons[osc_category_id()] <> '') {
                          $icon = $category_icons[osc_category_id()];
                        } else {
                          $icon = $category_icons[999];
                        }
                      }
                    ?>

                    <i class="fa <?php echo $icon; ?>"></i>
                  <?php } else { ?>
                    <img src="<?php echo osc_current_web_theme_url();?>images/small_cat/<?php echo osc_category_id();?>.png" />
                  <?php } ?>
                </div>
              </a>
            </li>
            <?php $i++; ?>
          <?php } ?>
        </ul>

       

Kol9

  • Newbie
  • *
  • Posts: 16
Re: Help with ad heading, how to add a link in the code?
« Reply #3 on: January 23, 2019, 09:23:07 pm »
Or give you the full page code?