WordPress Widgets

Reviews, Website Update Add comments

Automattic logoI just finished installing Automattic’s WordPress Widgets plugin on my blog. What a nice tool! Everything seems much easier now when it comes to moving things around in my theme’s sidebar.As you can read on their plugin page:

You must have a theme that supports sidebar widgets. To help you with that, we’ve included updated files for the WordPress 2.0 Default Theme (Kubrick) and the Classic theme. There are many themes that rely on Classic’s script files, so it’s probably a good idea to install the new Classic files unless you have modified the theme yourself.

As I use the Emire theme (thanks Phu) and I don’t know if this theme is Kubrik-based, I had to make a few changes in the code, mainly about the layout and the CSS. I’m not a php expert, but I don’t think you need to be such an expert in order to fine-tune your theme and adapt it to the plugin.And the results are great: make simple, easy, and powerful changes to your sidebar in only a few clicks.Thank you, Automattic!Read more:

6 Responses to “WordPress Widgets”

  1. António Says:

    Could you plz post a link to your modifications ?

    TIA, have a nice weekend

  2. alex Says:

    To answer Antonio’s question:

    1) I copied sidebar.php and functions.php (the files are provided by Automattic’s widget, available under /themes/classic/).

    2) Before uploading these files in the corresponding folder in [yourpathtowordpressinstallation]/wp-content/themes/emire , I changed the id of the first div from menu to sidebar:

    1. <!– begin sidebar –>
    2. div id="sidebar"

    3) Finally I added a new in the CSS file of Emire:

    1. #sidebar h2, .widgettitle{
    2. border-bottom:1px dotted #444444;
    3. font-size: 1.5em;
    4. }

    I hope this is clear. Let me know if the info helps.

  3. djfreq Says:

    hi alex thanks for the widget hack .

    this is going to be a dumb request but it’s 3:40 am here and i can’t figure it out..

    How did you get the “comments” and “filed under” box to appear on the main page. Mine show up fine on the individual post page but not on the main.
    thanks

  4. alex Says:

    Simply comment or remove the following code from the file style.css:

    1. .entrymeta{
    2. display:none;
    3. }

    The solution is copied from Emire theme’s post by its author.

  5. djfreq Says:

    i am in your debt sir.

  6. alex Says:

    No problem DJ Freq. The Internet is all about sharing infos :-)

Leave a Reply

You must be logged in to post a comment.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in