how to add widget into sidebar code? (6 posts)

  1. souleye
    Posted 3 years ago #

    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.

  2. Michael
    Part-Time Forum Moderator
    Posted 3 years ago #

    background info:

    possibly paste the code of sidebar.php into a pastebin and post the link to it here - HOW-TO

  3. souleye
    Posted 3 years ago #

    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'); ?>

  4. Michael
    Part-Time Forum Moderator
    Posted 3 years ago #

    if you want to do this per widget, look into using a php code widget or similar:

    or program your own widget:

  5. souleye
    Posted 2 years ago #

    I 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-->

  6. Michael
    Part-Time Forum Moderator
    Posted 2 years ago #


    you can use the 'modlook' tag if you come across some posts whihc are against the forum rules; http://codex.wordpress.org/Forum_Welcome#Contacting_the_Moderators

    I have moderated the mentioned spam reply.

Topic Closed

This topic has been closed to new replies.

About this Topic