WordPress.org

Ready to get started?Download WordPress

Forums

Styling & using different widgets (1 post)

  1. johndove523
    Member
    Posted 2 years ago #

    Please see url: http://caspca.org/wordpress/

    In the sidebar, I don't want the standard widget wrap (borders) around everything (e.g., Science Diet logo). From what I've been able to gather about creating different widgets, I've created these alternate styles that I want:

    aside .widget#noborder {
    	background: #fff;
    	padding: 4px;
    	margin:0 0 15px;
    	}

    and

    aside .widget-wrap#noborder {
    	border: none;
    	background: #FFF;
    	padding-bottom: 10px;
    	overflow: hidden;
    	}

    and then in functions.php, I don't know what to do with the code here in order to incorporate a second style widget:

    register_sidebar(
    		array(
    			'name'=>'Sidebar Widgets',
    			'description' => __('', 'mimbopro'),
    			'before_widget' => '<section class="widget"><div class="widget-wrap">',
    			'after_widget' => '</div></section>',
    			'before_title' => '<h3 class="widgettitle">',
    			'after_title' => '</h3>',
    		)
    	);

    IF I am even able to do this, how to I control the widgets on an individual basis to have the standard styling or the alternate no-border styling?

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags