Support » Plugin: Custom Sidebars - Dynamic Widget Area Manager » [Plugin: Custom sidebars] Naming convention

  • lexevan


    I was wondering if this plugin creates a new php file for each sidebar you create, and if so, what is the naming convention it uses?

    I want to edit multiple page php templates to include the new sidebar.php so when a page gets a template, it automatically gets the correct sidebar for that page.

    the standard is this…

    [php include(TEMPLATEPATH.”/sidebar_right.php”)]

    If i were to name the new side bar “Sidebar2” with the descriptor as “sidebar2” would the code above change like this to include that sidebar?

    [php include(TEMPLATEPATH.”/sidebar2.php”)]


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author marquex


    Hi lexevan,

    I’m afraid the plugin doesn’t work like that. It stores the new sidebars info in database, and when the page sidebar will be shown, the plugin detects if a custom sidebar has been defined and replace the original one with the custom one.

    There are no new php files for the sidebars, all this is possible thanks to the dynamic_sidebar function in the sidebar file of your theme.



    I see. However, i was able to do this…

    I made a sidebar in the plugin & named it ” Music ” with the descriptor as “music”

    then using this code in the page template in place of the other code, it actually was working. rather the template path

    [div id=”sidebar_right”]
    [?php include(!dynamic_sidebar(‘Music’));?]

    Everything was working perfectly, but then I installed some plugins for video and uninstalled them when they sucked. And after that, i starting receiving an error message on each page which had this code. It would still display the sidebar, but under it, would show an error message saying the following,

    “Warning: include() [function.include]: Filename cannot be empty in /hermes/bosweb/web209/b2093/sl.—–private—-/wp-content/themes/Structure Premium White/organic_structure_white/page_music.php on line 68

    Warning: include() [function.include]: Failed opening ” for inclusion (include_path=’.:/usr/local/lib/php-5.2.12/lib/php’) in /hermes/bosweb/web209/b2093/sl.—–private—-/wp-content/themes/Structure Premium White/organic_structure_white/page_music.php on line 68. “

    Im pretty sure the other plugins screwed up something in my include functions file, but Im not a coder so I have no clue how to fix it. So I was hoping the other “template path” code would resolve it.

    Anyway, thanks for your advice.


    Plugin Author marquex


    But it is not necessary to include the sidebar coding. If you are using a theme that allows widgets you only have to select the sidebars you want to replace in the custom sidebars admin page.

    Have you had a look at the howtos in

    At the bottom of that page you will see the replace the default sidebars howto.



    I have about 17 page templates.. and multiple subpages which use the same templates. There will also be 17 sidebars. Its a lot easier to simply select the page template and have the two sidebars automatically set for that template. Also, I will have a bunch of users on my site and i don’t want them to be able to accidentally change a sidebar. (if they are given admin profile).

    It might make more sense if you see the site.

    Right now most of the pages have the same main sidebar as i am researching content to create the unique sidebars for the other pages.

    Thanks. =)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Custom sidebars] Naming convention’ is closed to new replies.