WordPress.org

Ready to get started?Download WordPress

Forums

Custom Themes- Sidebar Widget fonts (4 posts)

  1. tlflow33
    Member
    Posted 6 years ago #

    I think all of the threads on this topic I found was dealing with the default theme, but I want to change the font of my sidebar widgets in my own custom theme.

    Even though everything is showing up, I can't seem to change the font (size, type or color) on any of the widgets.

    First of all, per some tutorial I found online, I just needed header.php, footer.php, sidebar.php, index.php and style.css. I copied the sidebar.php and the searchform.php from the default folder and put it in my custom theme's folder. Am I on the right track in doing that?

    Then, something I've seen in another thread, suggested that I add the following to my style.css:

    #searchform div {
    text-align:center;
    }

    #searchform s {
    border-width: 1px;
    border-style: solid;
    border-color: #999999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #333333;
    padding-left: 2px;
    }

    in which I'm just trying to add a border around my search textbox.

    Needless to say, neither has worked so far. What am I doing wrong?

  2. VeraBass
    Member
    Posted 6 years ago #

    In my stylesheet the relevant css is in the Form Elements section following:
    #sidebar #searchform #s
    and changes I apply show up.
    No divs.
    My searchform is a widgetized sidebar element.

  3. tlflow33
    Member
    Posted 6 years ago #

    I tried what you suggested, VeraBass, but it didn't work for me. Are you starting from the default theme or did you just start from scratch like I'm doing?

  4. VeraBass
    Member
    Posted 6 years ago #

    I started from the default theme, so I have:

    <li>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    </li>

    in my sidebar file.

    I've read in the docs here that once the sidebar is widgetized, that call should be in the widgets file, but mine doesn't have this ...just looks in sidebar.

Topic Closed

This topic has been closed to new replies.

About this Topic