Support Forums - Classified Ads Script Osclass

Osclass theme support => Zara Osclass Responsive Theme => Topic started by: Pravu Prav on October 10, 2016, 08:38:46 AM

Title: How to show the location/area of the latest listings in home page below title
Post by: Pravu Prav on October 10, 2016, 08:38:46 AM
I want to know that how to make it possible to show the location of the latest or premium listings in the homepage below the title of the listing
Title: Re: How to show the location/area of the latest listings in home page below title
Post by: MB Themes on October 10, 2016, 11:58:00 AM
@Pravu Prav
You need some plugin for that, i.e. Radius Search Plugin.
Title: Re: How to show the location/area of the latest listings in home page below title
Post by: wzzy on October 13, 2016, 04:02:09 PM
in main.php under :
                    <div class="price"><span><?php echo osc_item_formated_price(); ?></span></div>
                  <?php } ?>

put this:
<div>

       <span class="locationg "><i class="fa fa-map-marker"></i> <?php if ( osc_item_region() && osc_item_city() != null ) { ?><?php echo osc_item_city(); ?>, <?php echo osc_item_region(); ?><?php } ?></span>
           
                    </div>

in style.css put this

.locationg {
    background: #fff;
    color: #444;
    padding: 5px;
    font-weight: 500;
    float: left;
    width: 100%;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
Title: Re: How to show the location/area of the latest listings in home page below title
Post by: Pravu Prav on October 15, 2016, 08:41:42 AM
oho... its working ..


Thanks for your help
Title: Re: How to show the location/area of the latest listings in home page below title
Post by: mwangistoh on November 17, 2016, 08:18:29 PM
This worked for me too. thank you. What if i want to do the same for search results