Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

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

4 Posts
2 Users
2 Reactions
2,713 Views
Posts: 1229
Topic starter
(@percysgrowroom)
Noble Member
Joined: 7 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: 10606
Admin
(@robert)
Support Team
Joined: 10 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: 1229
Topic starter
(@percysgrowroom)
Noble Member
Joined: 7 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: 10 years ago

Support Team
Posts: 10606

@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);