how to add widget into sidebar code?
-
I’m working on a project with the manolya theme. a few items are hardcoded into the sidebar. if I add simple image widget, everything else goes away. how to easily add a widget while keeping everything else without having to reenter them manually. any assistance will be appreciated. thanks.
souleye
-
background info:
http://codex.ww.wp.xz.cn/Function_Reference/dynamic_sidebar
http://codex.ww.wp.xz.cn/Widgetizing_Themespossibly paste the code of sidebar.php into a pastebin and post the link to it here – HOW-TO
thank you alchymyth but I’m not sure if it answers my question. possibly, it has to do with my limited familiarity with wordpress. I’m trying to see if there’s a way to call a function or something and give it the name of a widget to make it appear on the sidebar. something like this:
<?php include (TEMPLATEPATH . ‘/recent-comments.php’); ?>if you want to do this per widget, look into using a php code widget or similar:
http://ww.wp.xz.cn/extend/plugins/search.php?q=php+code+widgetor program your own widget:
http://codex.ww.wp.xz.cn/Widgets_APII think that guy who goes by the name andrey416510 needs to be flagged. this is what he wrote:
Andrey416510 wrote:
<!–Widget Code Starts–><div id=’mywidgets73′></div><script async type=’text/JavaScript’ charset=’utf-8′ src=’http://spamlink-moderated’></script><!–Widget Code Ends–>
you can use the ‘modlook’ tag if you come across some posts whihc are against the forum rules; http://codex.ww.wp.xz.cn/Forum_Welcome#Contacting_the_Moderators
I have moderated the mentioned spam reply.
The topic ‘how to add widget into sidebar code?’ is closed to new replies.