Advertisement:

Author Topic: SOLVED: Latest Ads  (Read 945 times)

leemchildress

  • Newbie
  • *
  • Posts: 11
SOLVED: Latest Ads
« on: December 28, 2013, 12:13:51 am »
I am using the Modern theme. At the bottom section of the home page, it lists the newest ads that have been placed. If a user does not fill out all the region information, the post reads:

10.00 Dollar US$ - Valparaiso () - December 27, 2013

I would like to get rid of the empty () after the city and only have that appear if it contains a value; however, I am unable to find the code. Can someone offer some insight into where I may find that section of code?
« Last Edit: December 28, 2013, 01:05:11 am by leemchildress »

leemchildress

  • Newbie
  • *
  • Posts: 11
Re: Latest Ads
« Reply #1 on: December 28, 2013, 01:04:11 am »
Answered my own question! I finally found it. For anyone else interested in doing the same, the file is located in main.php (at least for Modern theme). Look for the line that says:

<p><strong><?php if( osc_price_enabled_at_items() && osc_item_category_price_enabled() ) { echo osc_item_formated_price(); ?> - <?php } echo osc_item_city(); ?> (<?php echo osc_item_region();?>) - <?php echo osc_format_date(osc_item_pub_date()); ?></strong></p>

and replace with:

<p><strong><?php if( osc_price_enabled_at_items() && osc_item_category_price_enabled() ) { echo osc_item_formated_price(); ?> - <?php } echo osc_item_city(); ?> <?php if (osc_item_region()) { echo '(' . osc_item_region() .')'; } ?> - <?php echo osc_format_date(osc_item_pub_date()); ?></strong></p>