Hi,
I am using WP-Sidebar in one of our developed websites. After, adding some widgets I found that my sidebar is getting broken. It was happening due to the passed values in the before and after widget texts in the advanced settings for each widgets.
So, if you create below options in plugin settings it will be helpful for users.
Default Before Widget text
Default After Widget text
Default Before Title text
Default After Title text
And, use provided values in widget creation page as default texts.
Hi,
I feel stupid asking this question but you said to change these parameters in the template…which template? I have been looking for it….
ai_dynamic_sidebar
$sidebar_id. Provide an ID to a specific sidebar. The default is NULL
$location. Provide a sidebar location, either: left, right, footer. The default is ‘left’
To display sidebars dynamically based on the selection for the given page, pass NULL to $sidebar_id.
Also you mention this below…where do I check this?
You can also check if a given location has any sidebars. Use ai_has_sidebar and pass in the either ‘left’, ‘right’, or ‘footer’. Returns TRUE if given location has sidebars, FALSE if no sidebars.
Thanks
]]>I’m using this the simplest way possible. I’ve added one sidebar only and I’ve set it as a default in case the function doesn’t pull any sidebars. Here’s the function I’m using:
<?php ai_dynamic_sidebar(); ?>
Won’t display any sidebars. I’ve tried variations using the sidebar ID etc. and nothing seems to be able to pull these sidebars. I appreciate your work on this, but I think it needs a little more explanation as to how to implement. Not sure what I’m doing wrong.
]]>Hi,
Is it possoble to choose to display no sidebar for sepcific posts, categories and pages?
Thanks!
Hi Daniel, this plugin looks great exactly what I need, however as a relative WP newbie I don’t quite understand how to get working:
I’ve successfully added two sidebars and attached the widgets I wanted. I then added the custom field “$sidebar_id” to my pages with the sidebarID as the argument…but these pages still display the “default” sidebar.
I replaced “dynamic_sidebar” with “ai_dynamic_sidebar” in sidebar.php…but still shows the “standard” sidebar. Please could you let me know if there’s something I have missed.
Many thanks for your time, Dan