1

I am using a Wordpress theme in which this is a code of widget ,

/* Widget settings. */
$widget_ops = array( 'classname' => 'maxmag_catlist_widget', 'description' => __('A widget that displays a list of posts from a category of your choice.', 'maxmag_catlist_widget') );

/* Widget control settings. */
$control_ops = array( 'width' => 150, 'height' => 200, 'id_base' => 'maxmag_catlist_widget' );

/* Create the widget. */
$this->WP_Widget( 'maxmag_catlist_widget', __('Max Mag: Category List Widget', 'maxmag_catlist_widget'), $widget_ops, $control_ops );

Here I want to edit the width of this widget , so I tried to change the line

$control_ops = array( 'width' => 150, 'height' => 200, 'id_base' => 'maxmag_catlist_widget' );

However it changed nothing. I don't know a bit of php, but I have some coding knowledge, can anyone please help me with this?

4

1 に答える 1

0

I took a look to the maxmag theme from themeforest ( i think you used this one) and i noted that in the style.css files it has this instruction (and others like this for other widget types):

.sidebar-widget {
    float: left;
    font: 400 12px/normal 'Open Sans', sans-serif;
    margin-bottom: 30px;
    overflow: hidden;
    width: 100%;
    }

I don't know which is the widget you have to change but I think that you can change the width: 100%; instruction to solve your problem.

L.

于 2012-12-29T02:08:25.557 に答える