[resolved] edit widget php (3 posts)

  1. Ryan Kanner
    Posted 4 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:

    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. Michael
    Forum Moderator
    Posted 4 years ago #

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


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

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

  3. Ryan Kanner
    Posted 4 years ago #

    this worked! thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic