Support » Plugin: Advanced Classifieds & Directory Pro » List only sub-categories in widget

  • Resolved eric-vice

    (@eric-vice)


    Hi,
    Is there any way how can I list in dropdown menu in widget only subcategories of actual category?
    I was looking at source code, but I’m not good at php, so if you can point me where I should look, it will be great.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pluginsware

    (@pluginsware)

    Hi Eric,

    Sorry, it is not possible to display only the subcategories of the actual category. If you need this feature, you can contact our customization team here https://pluginsware.com/get-a-quote/

    Thanks

    Thread Starter eric-vice

    (@eric-vice)

    Thanks for reply, I did it my way, not the best, but better then nothing 🙂
    Since I did not find it in php, I made them hidden in dropdown by javascript.

    If anybody is interested, you have to edit file :
    /advanced-classifieds-and-directory-pro/widgets/categories/views/acadp-widget-public-categories-display.php

    and add there id=”acadp_categories” to the <select> tag to get them identified by javascript and then you can add <script> section to wordpress theme footer to filter your menu :

    <script>
    jQuery(“#acadp_categories option:contains(‘What text you want to hide’)”).remove();
    </script>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List only sub-categories in widget’ is closed to new replies.