Wordpress -

How to implement shoutbox as a WordPress page? (Due to spam I removed shoutbox from my frontpage, temporarily, I hope) Generally you should do two things. First: Make page template for shoutbox and create page (through wordpress admin side). Second: Make some tuning for shoutbox css file.

Detailed Instructions:

  • Copy page.php file to Chat.php (or something). This file will be Shoutbox template file
  • To make Wordpress recognize Chat.php as a template, you should put inside it (very first lines) code like this
    <?php
    /*
    Template Name: Chat
    */
    ?>
    
  • Now put inside this chat page template call to shoutbox (like you do on a sidebar). Put it inside the loop and after call for content - the_content() - so that you will be able to add some text (description etc.,) on top of shoutbox (and you do this simply editing your page through admin side)
  • Go “New page” creation dialog in wordpress admin and choose use template -> Chat. Create new page.

Now you should have a page with shoutbox on it. But shoutbox looks exactly like the one on your sidebar. But we want it to be bigger wider higher , but to keep original sidebar shoutbox settings. Here comes the CSS power.

Open shoutbox CSS file and make copies of classes which control width, height and any other settings you want to be different. Prefix these copied instances with the class name or id of a div box in which you wrapped your call to shoutbox on a page. Since it is a main content area then it is something like maincontent or content.


For a example:

Class for page: .main-content #chatoutput {bla bla bla}
Class for sidebar: .sidebar #chatoutput {ya ya ya }

Hope this will help. If you still have questions, ask.

15 Responses to “Tip: How do I put the shoutbox on my site as a page?”

  1. Remco  

    Latest Shouts and..

  2. 1 Test  

    awesome

  3. 2 Oksana-bz  
  4. 3 Oksana-pp  
  5. 4 Oksana-es  

    dob

  6. 5 Oksana-gd  
  7. 6 Oksana-ha  
  8. 7 Oksana-cv  
  9. 8 Oksana-iz  
  10. 9 Oksana-ht  
  11. 10 Oksana-de  
  12. 11 Oksana-kp  
  13. 12 Oksana-go  
  14. 13 Oksana-ss  
  15. 14 Oksana-xf  

Leave a Comment

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a