Author Topic: How Do I Increase the homepage sections for each category?  (Read 1747 times)

ayo

  • Newbie
  • *
  • Posts: 1
    • View Profile
How Do I Increase the homepage sections for each category?
« on: February 19, 2018, 10:34:22 AM »
I need my website homepage sections to be increase for each category apart from the premium and latest listings sections currently on my homepage. I installed veronika theme and I need someone to help me out. Thanks as await your response.



Mike

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How Do I Increase the homepage sections for each category?
« Reply #1 on: February 21, 2018, 07:00:23 AM »
I need my website homepage sections to be increase for each category apart from the premium and latest listings sections currently on my homepage. I installed veronika theme and I need someone to help me out. Thanks as await your response.

Try below code and change CATEGORY_ID from your original category id like 1,2,3,4,....

Quote
<?php osc_query_item("category=<CATEGORY_ID>");
if( osc_count_custom_items() == 0) { ?>
    <p class="empty"><?php _e('No Listings', 'modern') ; ?></p>
<?php } else { ?>
    <table border="0" cellspacing="0">
         <tbody>
            <?php $class = "even"; ?>
            <?php while ( osc_has_custom_items() ) { ?>
             <tr class="<?php echo $class. (osc_item_is_premium()?" premium":"") ; ?>">
                    <?php if( osc_images_enabled_at_items() ) { ?>
                     <td class="photo">
                        <?php if( osc_count_item_resources() ) { ?>
                            <a href="<?php echo osc_item_url() ; ?>">
                                <img src="<?php echo osc_resource_thumbnail_url() ; ?>" width="75" height="56" title="<?php echo osc_item_title(); ?>" alt="<?php echo osc_item_title(); ?>" />
                            </a>
                        <?php } else { ?>
                            <img src="<?php echo osc_current_web_theme_url('images/no_photo.gif') ; ?>" alt="" title=""/>
                        <?php } ?>
                     </td>
                    <?php } ?>
                     <td class="text">
                         <h3><a href="<?php echo osc_item_url() ; ?>"><?php echo osc_item_title() ; ?></a></h3>
                         <p><strong><?php if( osc_price_enabled_at_items() ) { 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>
                         <p><?php echo osc_highlight( strip_tags( osc_item_description() ) ) ; ?></p>
                     </td>                                       
                 </tr>
                <?php $class = ($class == 'even') ? 'odd' : 'even' ; ?>
            <?php } ?>
        </tbody>
    </table>
<?php }; ?>

I tried this code for bender and zara theme and its work well.

I hope it will work on your site

Osclass Support Forums - Rackons.in

Re: How Do I Increase the homepage sections for each category?
« Reply #1 on: February 21, 2018, 07:00:23 AM »