Support » Fixing WordPress » edit individual widget width and class

Viewing 15 replies - 1 through 15 (of 20 total)
  • *~.~*~.~*BuMpEd*~.~*~.~*

    No. You have to hand-edit the widgets.php file found in your wp-admin folder. WARNING: This is NOT an easy thing to do. Make back-ups before trying anything.

    Is this the file?: wp-includes/widgets.php
    If so, I tinkered around with it and could not figure anything out. I know html but php is beyond me. Help please?!

    If I can help at all, here is the widgets.php file (from wp-includes/widgets.php):

    Can you include the needed fixes in a reply in case someone else is trying to accomplish this same task? I’m sure there are many people having this problem, but I can’t find a solution anywhere on the net. Plug-in?

    Thanks in advance!

    No, you don’t need to manually edit the file. You change your CSS instead, like you should for all stylistic changes.

    Just add this to your theme’s style CSS file:

    .widget_tag_cloud {
    text-align: center;
    .widget_tag_cloud h2 {
    text-align: left;

    Thank you Otto42 That worked. Now how do I set the width so the longer tags are not leaking over the background column?

    New really nice plugin:
    I’m using it on my site mentioned about.

    I still need to know how to set the width for the
    tag cloud
    . See my site where my tags are too long.

    Moderator kmessinger


    I control the width and placement in the style.css file like this

    	padding: 20px 0 10px;
    	margin-left: 550px;
    	width: 190px;

    I need to do something like that in my text boxes. They all hang over the left of the box. I have a widget I added to a text box and I can’t get it to center. I was hoping it would draw me more traffic but I might just have to remove it.

    I looked through the CSS but could not find it.

    Leejj: You’ll need to post a link to the site so we can see just what you’re talking about. We can’t tell you what to do without seeing it.

    Sorry…I thought my name became a link to it.


    I am having this problem as well. The site is Basically, I would like to make the XSPF Player wider, and make the tag cloud which is bleeding over the column width fit correctly. I tried messing with the CSS style sheet for the theme:

    widget_tag_cloud {
    text-align: center;
    width: 220;
    .widget_tag_cloud h2 {
    text-align: left;

    But it made no difference at all.
    I’ve been looking for this solution all over the web, and I know it may be seen as bad to ask, but I am really stuck on this.



    Hi all,

    My problem is with regards to the widget headers. I want to create graphic headers for each widget, instead of using the default text/h3 headers, but I can’t seem to figure out how to do it.

    Here’s a sample site where I’ve seen it:

    And here’s mine (because I don’t know if it’s because of the theme or what):

    Hi All

    I’m using the wp_tag_cloud in my WP 2.3.3 @ (-and others)

    I want it to show up like a cloud and not a list in my sidebar.

    I tried to control this widget in my stylesheet (without succes!) this way:

    li#tag_cloud { list-style: none; display: inline; }

    .widget_tag_cloud {
    display: inline;
    color: #69aee7;
    text-decoration: none;

    It still shows up like a list, can’t get this to work, what’s wrong here?

    How can i make this widget “breake out” from the overall sidebar-css, and show up like a inline cloud instead?

    Could someone please paste a some valid css-tags to control this widget?


Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘edit individual widget width and class’ is closed to new replies.