• I need to get a blogroll list in the format for a catagory to add as a horizontal menu. I have been using the depriciated get_links but not against switching to wp_list_bookmarks

    what if gives is:

    • <before>Text
    • what i need is:

    • <before>Text
    • because the CSS headers are:

      #menu {
      #menu ul {
      #menu li {
      #menu a {
      #menu a span {
      #menu a span {
      #menu a:hover span {
      #menu a:hover {
      #menu a:hover span {

Viewing 10 replies - 1 through 10 (of 10 total)
  • I need to get a blogroll list in the format for a catagory to add as a horizontal menu. I have been using the depriciated get_links but not against switching to wp_list_bookmarks

    what if gives is:
    <li><before><a>Text</a><after></li>

    what i need is:
    <li><a><before>Text<after></a></li>
    because the CSS headers are:

    #menu {
    #menu ul {
    #menu li {
    #menu a {
    #menu a span {
    #menu a span {
    #menu a:hover span {
    #menu a:hover {
    #menu a:hover span {

    I also dont want to break functionality of the way it is supposed to work.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    If you want your before and after bits included in the link, then they need to be part of the link’s name itself. Go to the Blogroll and edit each of the links to have that before and after as part of their actual names.

    There is no other way to do this short of hacking the core code.

    Thanks I never thought of doing it that way, I was actually trying to edit wp-includes/bookmarks.php to accomplich this, and just ended up breaking the whole thing after 3 hours.

    this does not work as wordpress filters out the angle brackets

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    What “angle brackets”? Are you trying to put HTML inside the link? What, exactly, are you wanting to do?

    I’m trying to use CSS like this:

    #tabsH {
          float:left;
          width:100%;
          background:#000;
          font-size:93%;
          line-height:normal;
          }
        #tabsH ul {
    	  margin:0;
    	  padding:10px 10px 0 50px;
    	  list-style:none;
          }
        #tabsH li {
          display:inline;
          margin:0;
          padding:0;
          }
        #tabsH a {
          float:left;
          background:url("tableftH.gif") no-repeat left top;
          margin:0;
          padding:0 0 0 4px;
          text-decoration:none;
          }
        #tabsH a span {
          float:left;
          display:block;
          background:url("tabrightH.gif") no-repeat right top;
          padding:5px 15px 4px 6px;
          color:#FFF;
          }
        /* Commented Backslash Hack hides rule from IE5-Mac \*/
        #tabsH a span {float:none;}
        /* End IE5-Mac hack */
        #tabsH a:hover span {
          color:#FFF;
          }
        #tabsH a:hover {
          background-position:0% -42px;
          }
        #tabsH a:hover span {
          background-position:100% -42px;
          }

    and get code like

    <div id="tabsH">
      <ul>
        <li><a href="#" title="Link 1"><span>Link 1</span></a></li>
        <li><a href="#" title="Link 2"><span>Link 2</span></a></li>
        <li><a href="#" title="Link 3"><span>Link 3</span></a></li>
        <li><a href="#" title="Longer Link Text"><span>Longer Link Text</span></a></li>
        <li><a href="#" title="Link 5"><span>Link 5</span></a></li>
        <li><a href="#" title="Link 6"><span>Link 6</span></a></li>
    	<li><a href="#" title="Link 7"><span>Link 7</span></a></li>
      </ul>
    </div>

    but i can only get the span code outside the <a> brackets

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Okay, I see what you’re saying, but I’m not sure why you’re wanting that. What does having the span inside the links get you? Why use the “a span” parts of the CSS? This just seems extremely weird to me.

    It is called the sliding door technique in CSS to make the tabbed menu have some distance and rounder edges. but i’m trying to make it changble based on get_links, get_bookmarks, or wp_list_bookmarks

    I added a patch to trunk to fix this. It is still pending addition.

    See: http://trac.wordpress.org/ticket/5652

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Adding more parameters to get_bookmarks’ is closed to new replies.