WordPress.org

Ready to get started?Download WordPress

Forums

Finding Widget Code + adding code to dyanamic sidebar (3 posts)

  1. dozer
    Member
    Posted 6 years ago #

    I am just upgrading my building blog to wordpress 2.6. I am more used to the previous versions, and am having trouble with the concept of widgets. On my site right now I have 4 widgets selected, categories, archives, links and recent comments. Take the recent comments widget for example, how do I determine what plug-in that equates to or where the code is?

    Also, how do I add a older plug in, such as top 10, into my dynamic widget sidebar?

    My previous theme had code like this:

    <li><h2><?php _e('Hot Topics'); ?></h2>
        <ul>
        <?php show_pop_posts(); ?>
       </ul>
      </li>

    If the plug-in is not widget ready can code be added into a dynamic sidebar?

    Help is greatly appreciated!

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Take the recent comments widget for example, how do I determine what plug-in that equates to or where the code is?

    You don't. Why would you care where the code is? You're not supposed to edit the code, that's the whole point of using widgets. They're a drop in sidebar module, you can configure them if they have configuration options, but in theory, that's supposed to be the extent of it. Sure, you could locate their code and edit them, but the point is to not have to do that.

    If you want to edit the sidebar code directly, then don't use widgets. Just edit your theme's sidebar.php file.

  3. dozer
    Member
    Posted 6 years ago #

    Sure, you could locate their code and edit them, but the point is to not have to do that.

    How would I do this?

    I have found the need to tweak the code in many plug-ins.

    I like using the widgets but it would be nice if they could be used in addition to being able to modify the sidebar.php directly.

Topic Closed

This topic has been closed to new replies.

About this Topic