To add your own sidebar content without creating your own widget you can do the following:


add_shortcode('MY_SIDEBAR_CONTENT', 'my_sidebar_content'); 
add_filter('widget_text', 'my_custom_text_widget_shortcodes');
function my_custom_text_widget_shortcodes($text){
  ?>
ADD YOUR CONTENT HERE
  <?php
	//To allow other text from the widget text box to be shown we need to strip out our shortcode and return what's left
	$text = str_replace('    
Follow us
Follow us Twitter Follow us LinkedIn
', '', $text); return $text; }

Then add a text widget to the sidebar using the normal wordpress widget page and enter

Follow us
Follow us Twitter Follow us LinkedIn
in it.

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published.