Support Forums - Classified Ads Script Osclass
Osclass theme support => Stela Osclass Theme => Topic started by: Vadim Rusakov on August 21, 2018, 09:20:30 AM
-
it is possible to delete the category data on the main page
but the categories themselves must exist
I need only 7 first categories to be displayed on main page
-
You mean first 7 by id?
-
yes the first seven
-
@Vadim
In file:
oc-content/themes/stela/inc.category.php
Find:
<a id="cat-link" href="<?php echo osc_search_url(array('page' => 'search', 'sCategory' => osc_category_id())); ?>">
and replace with:
<a id="cat-link" href="<?php echo osc_search_url(array('page' => 'search', 'sCategory' => osc_category_id())); ?>" <?php if(osc_category_id() > 7) { ?>style="display:none;"<?php } ?>>
-
Thank you
-
I try to publish ads in the categories that are hidden
Ads are not published
http://prntscr.com/kq1hwj
https://batumi24.ge/index.php?page=item&action=item_add
-
@Vadim
And that is wrong?
-
hidden categories should work
-
How can I select something hidden?
-
from add listing
http://prntscr.com/kq5dia
-
How can I see hidden entry? There is even no such option in osclass
-
add taxi category ads
https://batumi24.ge/index.php?page=item&action=item_add
this category is a directory that is hidden
-
IS POSSIBLE TO ADD ANNOUNCEMENTS TO HIDDEN CATEGORIES?
-
@Vadim
How you "hide" category? It is last time I ask this question.
-
YOU WRITE ME THIS SCRIPT
<a id="cat-link" href="<?php echo osc_search_url(array('page' => 'search', 'sCategory' => osc_category_id())); ?>" <?php if(osc_category_id() > 7) { ?>style="display:none;"<?php } ?>>
-
@Vadim
Yes, that is for home page right? You have not updated anything on publish page.
-
You can do so by giving an indicator id after the 7th category and then hide it via CSS _ display: none;
-
Everything works well, I have included the parent category. Thank you.