Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

wpForo 1.x.x [Closed] Adding chat box code to wpforo

4 Posts
2 Users
2 Reactions
2,360 Views
Posts: 1215
Topic starter
(@percysgrowroom)
Noble Member
Joined: 6 years ago

Hi all, I want to embed some code, so an embedded chat box appears above the main forum, on my forum front page:

https://percysgrowroom.com/forum/

So it will appear under the menu, but above the forum boxes, and within the side bar. 

I have the code to embed, I just don't know where to put it, will I have to edit theme files for Wforro? 

3 Replies
Robert
Posts: 10616
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @percysgrowroom,

I'm sorry but I can't follow you. How can something be located in forum boxes and in the same time in the sidebar. So where exactly you'd like to locate it?

Posts: 1215
Topic starter
(@percysgrowroom)
Noble Member
Joined: 6 years ago

Yer i understand that wasn't clear, maybe this pic will help:

 

If i add the chat box code, above the Wpforro short code, it will show as full width, like the blue box in this picture

I need to embed it into the wpforro code, so it site within the side bars, like the red box does 🙂 HOpe this helps explain what I mean 

1 Reply
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10616

@percysgrowroom,

You can use wpForo 'wpforo_top_hook'. Put this code in your active theme functions.php file. Replace the [chat-shortcode] with the real shortcode. If it doesn't work, contact to the chat plugin developers and ask them why it doesn't work through do_shortcode() function.

function my_chat_function(){
do_shortcode( '[chat-shortcode]' );
}
add_action('wpforo_top_hook', 'my_chat_function', 10);