WordPress.org

Ready to get started?Download WordPress

Forums

Getting sidebar in new custom theme to sit on side instead of bottom (2 posts)

  1. zakiazakiazakia
    Member
    Posted 1 year ago #

    Hello

    I'm having a problem getting my sidebar in a theme I'm developing from scratch to sit on the side. I'm completely new to WordPress so I'm trying to teach myself how to navigate by doing a custom theme.

    Here is the index page code:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser. Or use pastebin.com instead. ]

    #header {font-size:15px;
    font-family: mono;
    color:yellow;
    text-align: center;
    }
    
    #sidebar {
    list-style: none;
    font-family: 'Times New Roman';
    color: blue;
    float: right;
    }
    
    #tagline {
    font-family: courier;
    text-align: center ;
    }
    
    #content {
    font-family: arial;
    color: pink;
    text-decoration:none;
    }
    
    #nav {
    font-family: courier;
    color: red;
    list-style: none;
    text-align: center
    }
    
    #footer {
    font-family: courier;
    text-align: center;
    }
    
    And the sidebar.php file:
    
    <ul id="sidebar">
     <li id="about">
      <h2>About</h2>
      <p>This is my blog.</p>
    
     <li id="links">
      <h2>Links</h2>
    
    <ul>
    <li><a href="http://example.com">Example</a></li>
    </ul>
  2. zakiazakiazakia
    Member
    Posted 1 year ago #

    sorry, the first is the style.css obviously)

Topic Closed

This topic has been closed to new replies.

About this Topic