• Tobias

    (@gestaltraeume)


    I need text widgets in different colors.

    I changed the the php-code to register a css class in div before widget. But it don′t work.

    function purple_pro_widgets() {
    
    register_sidebar(array(
    	'name' => __( 'Sidebar Widget Area', 'purple_pro'),
    	'id' => 'sidebar-widget-area',
    	'description' => __( 'The sidebar widget area', 'purple_pro'),
    	'before_widget' => '<div id="%1$s" class="widget %2$s">',
    	'after_widget' => '</div>',
    	'before_title' => '<h3>',
    	'after_title' => '</h3>',
    ));
    }

    the output:

    <aside>
    <div class="widget"><div><div class="textwidget">

    where is the problem.

    Thank′s for help

  • The topic ‘Text Widget with different Class’ is closed to new replies.