Quick Help on Wordpress Code. Will rep! :)

Discussion in 'PHP' started by aaron_nimocks, Jan 12, 2008.

  1. #1
    This is absolutely killing me...

    How can I remove the LI tag from

    <?php wp_get_archives(); ?>
    PHP:
    everything I have tried isnt working. You can see my archives at www.pregnancyhut.com and see that extra bullet that wont go away.

    Thanks!
     
    aaron_nimocks, Jan 12, 2008 IP
  2. cwboaze

    cwboaze Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    go into wp-includes folder, then widgets.php

    find around: 420 or find function wp_widget_archives($args)
    this is what echo's your archive out.

    also, the controls for that function is the function right after
    it, function wp_widget_archives_control()

    please past the code from 420 or function wp_widget_archives($args)
    to 466 or ending }

    I can see your extra bullets there to get rid of them.
     
    cwboaze, Jan 12, 2008 IP
  3. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #3
    I can try that but I was thinking of an easier way.. something like this Ive seen before...

    <?php wp_get_archives(title=li); ?>
    PHP:
    or just something that goes in the ( ) that will make this happen
     
    aaron_nimocks, Jan 12, 2008 IP
  4. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #4
    Instead of commenting out those 2 functions I just temporarily deleted them and it didnt fix it. The bullets are still there. Any other ideas what can cause it if those 2 functions arent even there?
     
    aaron_nimocks, Jan 12, 2008 IP
  5. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think you forgot the ul opening tags there ...?
    edit and closing tag ... so the list-style:none; that you have in the css should fix it.
     
    maiahost, Jan 12, 2008 IP
    aaron_nimocks likes this.
  6. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,563
    Likes Received:
    627
    Best Answers:
    0
    Trophy Points:
    420
    #6
    That worked. I didnt have the UL opening or closing tag in there. Cant believe I missed that one. Thanks though. Rep coming your way.
     
    aaron_nimocks, Jan 12, 2008 IP