This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Vadim Rusakov

  • ***
  • 65 posts
how to show a certain category on the main
« 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

*

MB Themes

Re: how to show a certain category on the main
« Reply #1 on: August 21, 2018, 10:56:50 PM »
You mean first 7 by id?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vadim Rusakov

  • ***
  • 65 posts
Re: how to show a certain category on the main
« Reply #2 on: August 22, 2018, 04:25:19 PM »
yes the first seven

Marked as best answer by frosticek on August 24, 2018, 08:07:50 AM
*

MB Themes

Re: how to show a certain category on the main
« Reply #3 on: August 22, 2018, 07:24:47 PM »
@Vadim
In file:
oc-content/themes/stela/inc.category.php

Find:
Code: [Select]
<a id="cat-link" href="<?php echo osc_search_url(array('page' => 'search''sCategory' => osc_category_id())); ?>">
and replace with:
Code: [Select]
<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 ?>>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vadim Rusakov

  • ***
  • 65 posts
Re: how to show a certain category on the main
« Reply #4 on: August 23, 2018, 06:11:37 PM »
Thank you

*

Vadim Rusakov

  • ***
  • 65 posts
Re: how to show a certain category on the main
« Reply #5 on: September 03, 2018, 02:22:43 PM »
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
« Last Edit: September 03, 2018, 02:24:36 PM by Vadim Rusakov »

*

MB Themes

Re: how to show a certain category on the main
« Reply #6 on: September 03, 2018, 04:04:20 PM »
@Vadim
And that is wrong?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vadim Rusakov

  • ***
  • 65 posts
Re: how to show a certain category on the main
« Reply #7 on: September 03, 2018, 04:29:37 PM »
hidden categories should work
« Last Edit: September 03, 2018, 04:31:49 PM by Vadim Rusakov »

*

MB Themes

Re: how to show a certain category on the main
« Reply #8 on: September 03, 2018, 06:27:15 PM »
How can I select something hidden?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vadim Rusakov

  • ***
  • 65 posts
Re: how to show a certain category on the main
« Reply #9 on: September 03, 2018, 07:13:18 PM »

*

MB Themes

Re: how to show a certain category on the main
« Reply #10 on: September 03, 2018, 07:57:30 PM »
How can I see hidden entry? There is even no such option in osclass
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vadim Rusakov

  • ***
  • 65 posts
Re: how to show a certain category on the main
« Reply #11 on: September 03, 2018, 10:02:48 PM »
add taxi category ads

https://batumi24.ge/index.php?page=item&action=item_add

this category is a directory that is hidden

*

Vadim Rusakov

  • ***
  • 65 posts
Re: how to show a certain category on the main
« Reply #12 on: September 04, 2018, 09:20:04 PM »
IS POSSIBLE TO ADD ANNOUNCEMENTS TO HIDDEN CATEGORIES?

*

MB Themes

Re: how to show a certain category on the main
« Reply #13 on: September 04, 2018, 09:49:38 PM »
@Vadim
How you "hide" category? It is last time I ask this question.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vadim Rusakov

  • ***
  • 65 posts
Re: how to show a certain category on the main
« Reply #14 on: September 05, 2018, 12:03:46 AM »
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 } ?>>