WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] widget css problem (3 posts)

  1. FostinWD
    Member
    Posted 4 years ago #

    I'm a begginer, sorry for posting silly things like this.

    I'm trying to style my sidebar, the links have to be greay and uppercase, without a bullet..

    but still it looks like this: LINK

    CSS:

    .widget ul{
    
    list-style: none;
    
    }
    
    .widget ul a:link {
    
    font-family: arial;
    font-weight:bold;
    font-size:11px;
    color:#6A6A6A;
    text-decoration:none;
    text-transform:uppercase;
    
    }
    
    .widget ul a:hover {
    
    font-family: arial;
    font-weight:bold;
    font-size:11px;
    color:#B9B9B9;
    text-decoration:none;
    
    }

    and the widget code in the sidebar.php:

    <div class="widget"> 
    
    <h2>Archives</h2>
    
    <ul>
    
    <?php wp_get_archives('type=monthly'); ?>
    
    </ul>
    
    </div>

    Thanks in advance!

  2. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    you either don't use the widgets from 'admin->appearance->widgets' or your theme does not use widget classes:

    that is part of the html of your site from your browser:
    <h2>Categories</h2>

    `

    you could try and use:
    #sidebar-a ul a:link {

    instead of:
    .widget ul a:link {

    in your styles.

  3. FostinWD
    Member
    Posted 4 years ago #

    THANK YOU SO MUCH!!!!
    It works! :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags