198086 2 Report post Posted March 6, 2011 I want to create a new sidebar above the social icons area in the header template using hook. I have created a new section page in platformbase and it is available in the drag and drop template settings. The problem is how do I call the new sidebar using hook so it will load by default? Do I need to use register_sidebar() or is there any other way that I missed out? Share this post Link to post Share on other sites
catrina 103 Report post Posted March 6, 2011 Have you checked out this tutorial yet?: http://www.pagelines.com/docs/base-child-theme. It goes over how step-by-step how to add a hook. Also, the new section page/sidebar you created might not be needed if you're using a hook. The sidebar content can be generated in the theme functions file. Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
198086 2 Report post Posted March 7, 2011 Yes I use hook and the section is available in the platformpro settings. I made customization onto Site Branding template using base and would like to have a sidebar in the branding template. This way the sidebar is available by default and no need to drag and drop. I'm developing multisite to enable other users to add any widget they like. The problem now is how to call the sidebar in the new function? I use register_sidebar() function within the new function but there's no luck. Share this post Link to post Share on other sites
cmunns 16 Report post Posted March 7, 2011 Instead of creating a custom section you could have just used hooks to create the sidebar and (also in the functions.php file) register the new sidebar. Then it would be there by default if you of course used a widget for the new area. That make sense? Share this post Link to post Share on other sites
jdeveraturda 0 Report post Posted June 10, 2011 Can someone help me how to add a custom sidebar? Thanks. Share this post Link to post Share on other sites
catrina 103 Report post Posted June 10, 2011 Have you already seen this?: http://www.pagelines.com/docs/base-child-theme If so, to get you started, you'll need to know which hooks you need to use, but first, you'll need to know where in the header you want the new sidebar to be. Where do you want it specifically? Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites