Comments on: How to add a Widgetised area in a WordPress theme http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/ Sun, 22 Mar 2015 14:44:25 +0000 hourly 1 http://wordpress.org/?v=4.1.1 By: Oemar http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/#comment-239094 Sat, 14 Dec 2013 03:01:22 +0000 http://www.studiograsshopper.ch/?p=973#comment-239094 fully working 100%. great thanks :)

]]>
By: Yazmin http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/#comment-237616 Tue, 23 Apr 2013 17:06:27 +0000 http://www.studiograsshopper.ch/?p=973#comment-237616 Thank you! This was a great tutorial. Needed some code to be editable by my client and widgetizing the area fit the bill. Had the section up, running and styled in 20 minutes flat.

]]>
By: Ade http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/#comment-232021 Thu, 14 Mar 2013 06:29:25 +0000 http://www.studiograsshopper.ch/?p=973#comment-232021 Cool! Glad it was useful.

]]>
By: Ade http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/#comment-231881 Wed, 13 Mar 2013 17:38:14 +0000 http://www.studiograsshopper.ch/?p=973#comment-231881 Cool! Glad it was useful.

Checkout the WordPress Template Hierarchy which explains the priority given to each template (eg fronntpage.php) when loading a site page. The frontpage.php template takes precedence over index.php, hence you were correct to put the code in this template.

:-)

]]>
By: Peznemizzle http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/#comment-231854 Wed, 13 Mar 2013 16:00:45 +0000 http://www.studiograsshopper.ch/?p=973#comment-231854 ur the man!!!
I was going ?=**&% nuts! Im a absolute beginner and so excited because everything is starting out so easy with wp. And then the first really, really cool stuff was to use the plugins and then… why couldn’t I just take a cool theme and add a plugin on the front page to it!?! try and error for hrs and then I finally found your explanation!
This would cost like at least 40% on Appsumo.

!!
But I have one thing to add. I tried to adapt your explanation on the theme “thememagic”.
And I had an “index.php” AND a “frontpage.php”. And it worked just after having put the commants into the “frontpage.php”
damn tricky stuff!!
thanks dude!

]]>
By: mandy schreiner http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/#comment-231667 Wed, 13 Mar 2013 00:11:45 +0000 http://www.studiograsshopper.ch/?p=973#comment-231667 Hi, I have the same question. My functions file has not much in it. I created the child theme as you said. That worked great. I appreciate the tutorial.

I added the line of code here and did not see it show up in my widgets area. I put this in the header.php of my site. I named them the same (just used same name as your example because i am just trying to learn this). Any ideas? This code under /// Get Core – is the only code in my entire functions file?

// GET CORE ///////////

if(file_exists(TEMPLATEPATH.’/_core/init_core.php’)){
define(‘CORE’, TEMPLATEPATH . “/_core”);
define(‘CORENAME’, “_core”);
register_sidebar(array(‘name’=>’Post Widget’,));
}else{
define(‘CORE’, TEMPLATEPATH . “/core”);
define(‘CORENAME’, “core”);
}
include(CORE . “/init_core.php”);

?>

]]>
By: Merk http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/#comment-226790 Mon, 25 Feb 2013 18:27:26 +0000 http://www.studiograsshopper.ch/?p=973#comment-226790 Nice and simple! Have been looking, but others are not as well explained.
Thanks for this great post.

]]>
By: Ilir http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/#comment-224522 Sun, 17 Feb 2013 13:46:03 +0000 http://www.studiograsshopper.ch/?p=973#comment-224522 thanks a lot .. really helped meee :D

]]>
By: Ade http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/#comment-127790 Wed, 29 Aug 2012 16:58:02 +0000 http://www.studiograsshopper.ch/?p=973#comment-127790 The example is just that – an example. No need to add this code if your theme doesn’t have these sidebars. All you need deal with is registering your new sidebar.

Hope that clarifies.

]]>
By: Serena http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/#comment-126337 Wed, 22 Aug 2012 17:35:58 +0000 http://www.studiograsshopper.ch/?p=973#comment-126337 What do you do if

1 if ( function_exists(‘register_sidebars’) ) {
2 register_sidebar(array(‘name’=>’Sidebar 1′,));
3 register_sidebar(array(‘name’=>’Sidebar 2′,));
4 register_sidebar(array(‘name’=>’Sidebar 3′,));
5 }

is not in your themes functions.php?

Can you just add it in?

]]>