side bar archives wp..

Discussion in 'WordPress' started by hitboy, Jun 28, 2007.

  1. #1
    When you get the wordpress blog the archives on the sidebar are in this format.

    Archive 1
    Archive 2
    Archive 3
    etc..

    How Do I get it in this format..

    Archive 1, Archive 2, Archive 3

    I am talking about the sidebar on the main page thanks!
     
    hitboy, Jun 28, 2007 IP
  2. Etherfast

    Etherfast Peon

    Messages:
    1,192
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Basically, you'll have to edit the way the archive function outputs, but I have no idea where would that be listed.
     
    Etherfast, Jun 29, 2007 IP
  3. hitboy

    hitboy Well-Known Member

    Messages:
    2,939
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    170
    #3
    yea i was thinking the same thing the current the template I am using has 2 files named archives.. yet I have no idea what to do ..
     
    hitboy, Jun 29, 2007 IP
  4. hitboy

    hitboy Well-Known Member

    Messages:
    2,939
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    170
    #4
    Anyone else have any suggestions to this minor issue?
     
    hitboy, Jun 30, 2007 IP
  5. veckd

    veckd Peon

    Messages:
    1,065
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hm, you will have to find out how to style it but it think it outputs in this format:
    <ul id="something">
    <li>archive 1</li>
    <li>archive 2</li>
    <li>archive 3</li>
    </ul>
    Code (markup):
    so find out what the id or class of ul is and do this:
    #thatidname li{display:inline;}
    Code (markup):
    or in the case that it is a class not an id
    .thatclassname li{display:inline;}
    Code (markup):
    note that this will only work if it outputs in a list like above.
     
    veckd, Jun 30, 2007 IP
  6. hitboy

    hitboy Well-Known Member

    Messages:
    2,939
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    170
    #6
    I understand what you mean but the issue is I have no clue which file it is in Ive been looking through them and cant find them..
     
    hitboy, Jun 30, 2007 IP
  7. Ragnhild

    Ragnhild Peon

    Messages:
    28
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    From what I can tell, you have to edit the sidebar.php file found in your theme folder. What you are looking for is a function like "wp_get_archives", it does not look like a list in the template file. Find that and then change the id or class of the ul tags that surround the function. Then you style the list like it was explained in this thread.
     
    Ragnhild, Jul 1, 2007 IP