Osclass Support Forums

Osclass theme support => Beta Osclass Theme => Topic started by: officela on March 08, 2020, 07:37:11 PM

Title: Items Location link
Post by: officela on March 08, 2020, 07:37:11 PM
How to make the location of a listing to be a link? just like the category for example.
Title: Re: Items Location link
Post by: MB Themes on March 08, 2020, 08:21:29 PM
@officela
Code: [Select]
<?php osc_search_url(array('page' => 'search''city' => osc_item_city())); ?>.. etc to get link
Title: Re: Items Location link
Post by: officela on March 08, 2020, 09:32:42 PM
Thanks!

This i have to place it on what file?
Title: Re: Items Location link
Post by: MB Themes on March 09, 2020, 01:32:34 PM
@officela
Check loop-single.php and loop-single-premium.php
Title: Re: Items Location link
Post by: officela on March 09, 2020, 05:08:02 PM
Code: [Select]
<div class="location isGrid">
        <?php echo (bet_item_location() <> '' bet_item_location() : __('Unknown location''beta')); ?>
        <?php if(function_exists('fi_save_favorite')) { echo fi_save_favorite(); } ?>
      </div>

Managed to see that this is the code responsible for this after your instructions.

How need be looking after? i tried replacling this :
Code: [Select]
<?php echo (bet_item_location() <> '' bet_item_location() : __('Unknown location''beta')); ?>
with this
Code: [Select]
<?php osc_search_url(array('page' => 'search''city' => osc_item_city())); ?>
yet nothing....
any hint???