WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] edit widget php (3 posts)

  1. Ryan Kanner
    Member
    Posted 2 years ago #

    I have an interesting widget issue. I am trying to make two widgets half of the size and next to each other. Like the categories widget and the blogroll widget on this site:
    http://www.dailybitesblog.com/

    I can't do this in the css because all of the widgets have the same id, so i'm thinking I need to edit the php function for each of the widgets, but I don't know where to do this.

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    check the codex chapter for 'register_sidebar()' for how to add individual css ids to each widget:

    http://codex.wordpress.org/Function_Reference/register_sidebar

    'before_widget' => '<li id="%1$s" ......

    look into functions.php of your theme for the register_sidebar code.

  3. Ryan Kanner
    Member
    Posted 2 years ago #

    this worked! thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic