January 13, 2022 at 11:25 am #9385
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/
SafaaJanuary 13, 2022 at 12:12 pm #9386
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.
HaruThemeJanuary 13, 2022 at 1:59 pm #9387
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,
SafaaJanuary 14, 2022 at 2:49 am #9388
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)
HaruThemeJanuary 17, 2022 at 10:53 am #9393
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,
SafaaJanuary 18, 2022 at 3:49 pm #9400
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 );
$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:
and the result:
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:
You can research and we’ll help if maybe have some stuck.
Hope this helps!
You must be logged in to reply to this topic.