Hello,
I would like to position the chatbox between two categories on the forum page.
I already have the code to insert into the functions.php file:
function my_chat_function(){
do_shortcode( '[wise-chat]' );
}
add_action('wpforo_top_hook', 'my_chat_function', 10);
However, the chatbox doesn't appear; perhaps I edited the wrong functions.php file.
Any assistance would be greatly appreciated.
You have to edit the forum.php (2022 Theme)
the code looks like this
<?php if (function_exists('wise_chat')) { wise_chat(array('Channel1','Channel2','Channel3')); } ?>
use your channel
Also, it looks weird on my forum, can you please tell me if you encountered this issue or help me?
WiseChat is stuck to my first category.
Hi @guts
add_action( 'wpforo_loop_hook', function( $key ){ if( $key === 0 ){ apply_shortcode('[wise-chat]'); } });
Try this hook: the $key is a index of the forums current iteration.
For the styling you should write the CSS codes for solving the website css conflicts
You should use the Snippets Plugin for custom PHP codes