WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Where is "class='xoxo blogroll'" coming from?? (5 posts)

  1. garybeck
    Member
    Posted 4 years ago #

    I am working on my links page.

    I have this line of code to produce the content:

    <?php wp_list_bookmarks('title_li=&category_before=&category_after=&before=<li class="bookmark">'); ?>

    for some reason the resulting web page has this class assigned to the UL:

    <ul class='xoxo blogroll'>

    I can't figure out where that is coming from, and there is no such class predefined in my stylesheet. Also, if I create the class in my stylesheet and try to define it, there is no effect on the output, like it's being overridden.

    the main thing I'm trying to do is get the bullets to appear in the
    <li> items inside that UL. But they are missing and I can't get them to show no matter what I do.

    any help is much appreciated.

    gary in vermont</li>

  2. Mark / t31os
    Moderator
    Posted 4 years ago #

    It's coming from the wp_list_bookmarks function (i think)..

    RE: CSS , try..

    ul.blogroll,
    ul.blogroll li { list-style: disc inside }

    Failing that, try forcing the CSS..

    ul.blogroll,
    ul.blogroll li { list-style: disc inside!important; }

    Purely examples of course, take what you will from it..

  3. garybeck
    Member
    Posted 4 years ago #

    thanks but I'm confused. if the class assigned is 'xoxo blogroll' don't i have to include the 'xoxo' in the stylesheet definition?

    i've never seen spaces in class names.

  4. lokrin2000
    Member
    Posted 4 years ago #

    It is not a space in ONE class name. It is a space between TWO class names.

    You can assign more than one class to an element. I might assign a class of post to all the paragraphs in a post and also assign a class of initial to the first paragraph of a post. The initial CSS would include something like drop caps and uppercase being added to that paragraph while still using the post CSS as in the other paragraphs of that post.

  5. garybeck
    Member
    Posted 4 years ago #

    thanks everyone. I'm still not sure why my css code didn't work and yours did, but at this point it doesn't matter :)

    thanks very much

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.