WordPress.org

Ready to get started?Download WordPress

Forums

Is there an easy way to get my sidebar to match up properly? (14 posts)

  1. thatdaveguy
    Member
    Posted 6 years ago #

    My website:

    http://www.thedailycute.com

    My issue:

    As you can see, under Membership, Top Posts, and External Sources of cute don't follow my theme's bulleting scheme.

    I don't know how to do PHP. Is there any easy way to make them all have the same nice bullets the other sections have? The Top Posts part has the bullets, but they are misaligned and I don't know how to fix that.

    Thanks!

    Dave.

  2. thatdaveguy
    Member
    Posted 6 years ago #

    bump

  3. thatdaveguy
    Member
    Posted 6 years ago #

    bump

  4. JamesICT
    Member
    Posted 6 years ago #

    Try this:

    Add the following to your body in your CSS:

    list-style-type:none;

    and then also make a new line in your css as follows:

    td li { list-style-type:none;}

    You also may need to sort out your margin/padding for the td.

  5. thatdaveguy
    Member
    Posted 6 years ago #

    OK, thank you. That did the trick to at least make everything uniform. I guess it would be much harder for me to put bullets on everything, right?

    I'm still not too sure how to sort out my alignment for the Top 5 posts on the left side.

  6. thatdaveguy
    Member
    Posted 6 years ago #

    i'm guessing i have to edit the plugin

  7. JamesICT
    Member
    Posted 6 years ago #

    Sorry, I mis-read what you wanted. To have the same bullets for the top - you need to wrap the two membership items in <li></li> like the rest of the lists.

    To complicate matters though, most of the lists do not have a <ul></ul> wrap, whereas the Top Posts do. This is what is causing the difference in alignment.

  8. thatdaveguy
    Member
    Posted 6 years ago #

    how do i fix the ul wrap?

    i added the li to my membership items...and well, you can see the results when you hit the page...only one gets a bullet!

  9. moshu
    Member
    Posted 6 years ago #

    i added the li...
    No, you didn't!
    li = list item = which means it should be opened AND closed around EVERY list item separately!

    And you may want to take a closer look to those lists: none of them has an opening ul or ol tag.
    HTML basics: http://www.w3schools.com/html/html_lists.asp

  10. thatdaveguy
    Member
    Posted 6 years ago #

    <tr>
    <td style="padding-left: 5px; background-image: url('dailycute/wp-content/themes/petlove/images/d3navbg.jpg')" height="26"><span style="letter-spacing: 1"><b><font face="Arial" size="2">Membership:</font></b></span></td>
    </tr>
    <tr>
    <td style="padding: 5px" valign="top">[li]<font face="Arial" size="2"><?php wp_get_links('15'); ?></font>[/li]</td>
    </tr>

  11. thatdaveguy
    Member
    Posted 6 years ago #

    bah its turning the li tags into an actual list.

  12. whooami
    Member
    Posted 6 years ago #

    bah its turning the li tags into an actual list.

    uhh,
    <li> stands for list item.

  13. thatdaveguy
    Member
    Posted 6 years ago #

    i edited the code above, and put square brackets around the li tags so you guys can see my code.

    is that not encompassing everything?

    putting in UL code broke it more, only one item is bulleted plus the alignment is broken

  14. thatdaveguy
    Member
    Posted 6 years ago #

    ok, i got everything to lineup now without bullets

    it looks better with bullets though, so i'm disappointed.

    it seems when i use the UL tag, it changes the alignment and uses different bullets than the [li] tag. there is nothing in the stylesheet that i can find to reflect that...

    also, when i use the li tag, it only places a bullet on the first item. how can i use the li tag around php code?

    for example:

    <td style="padding: 5px" valign="top">[li]<font face="Arial" size="2"><?php wp_get_links('15'); ?></font>[/li]</td>

    only places a bullet in front of the first link. if i use the UL tag (in addition to li), it places a bullet in front of the first link and breaks the alignment. still no bullet on the second link.

Topic Closed

This topic has been closed to new replies.

About this Topic