Your account expired support, please renew to get your support.

Home Forums Themes Support Vidio Checkbox in video category

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9385
    Safaa
    Support Expired

    Hello Haru team,
    I was wondering if there is a way to add checkbox in video categories as shown here, in the left side bar : http://kultureand.co/video/
    Thank you,
    Safaa

    #9386

    Hi,
    Thanks for contacting us and choosing our product!
    Currently our theme/plugin doesn’t support this.
    Because change from link to checkbox need to process many things in query videos to display (not only change the HTML).
    We’ll notice about it and research to update it later.

    ****
    Regards,
    HaruTheme

    #9387
    Safaa
    Support Expired

    Thank you, i appreciate your feedback on this, if you could just show me the steps and i could manage to implement it !

    With my best,
    Safaa

    #9388

    Hi,
    Sorry but do you can code PHP and AJAX & CSS?
    If you can do it we’ll check and have step to step but need much time to do it.
    (2-3 days to research and implement)

    ****
    Regards,
    HaruTheme

    #9393
    Safaa
    Support Expired

    Yes i can code and have some help too, i just need the correct steps. Thus i appreciate your support on this, thank a lot.

    With my best,
    Safaa

    #9400

    Hi,
    Currently after quick research we found you need some steps:
    Step 1: Go to wp-content/plugins/haru-vidi/includes/widgets/ then open file haru-video-categories.php
    on line 227 you need to change the code:
    wp_list_categories( $list_args );
    to
    $args = array(
    'descendants_and_self' => 0,
    'selected_cats' => false,
    'popular_cats' => false,
    'walker' => null,
    'taxonomy' => 'video_category',
    'checked_ontop' => true
    );
    wp_terms_checklist( 0, $args );

    to display as checkbox list but you need reference more here:

    wp_category_checklist()


    https://stackoverflow.com/questions/27795447/custom-function-for-wp-list-categories-to-list-terms-as-checkboxes
    and the result:
    https://gyazo.com/62b34240b49f4b138df63db97d7087b6
    Step 2:
    You need to add js to process when you click on checkboxes in wp-content/plugins/haru-vidi/assets/js then open file haru-vidi.js
    You need to write a js function to process click on checkbox here!
    Maybe need to process with WP_Query (no ajax): https://developer.wordpress.org/reference/classes/wp_query/
    and example with ajax call:

    jQuery ajax filtering posts with checkboxes


    You can research and we’ll help if maybe have some stuck.
    Hope this helps!

    ***
    Regards,
    HaruTheme

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.