Copy this post: webitechi.com/facebook-chat-smileys-cool-icons/ (only one image and its corresponding text box with code will be enough). to a wordpress post !!(and tell me how to do it ) The problem is inside the text box additional "/br" tags are inserted, when I am trying the same. More info: https://forums.digitalpoint.com/threads/need-help-with-facebook-chat-code-in-wordpress-post.2655671/ PM me your answer or reply below...best and fastest one wins $5.
Ok you aren't replying but this is what you have to do: Go into your functions.php file, and add these two lines of code: remove_filter( 'the_content', 'wpautop' ); add_filter( 'the_content', 'wpautop' , 12); Code (markup):
This will get rid of all line breaks, so if you want them back, you have to add this to the shortcode functions: function bio_shortcode($atts, $content = null) { $content = wpautop(trim($content)); return '<div class="bio">' . $content . '</div>'; } add_shortcode('bio', 'bio_shortcode'); Code (markup):