• is there something wrong with this code?
    < li class=”submenu”><?php wp_list_pages(‘ title_li=< b >< a href=”#” > ‘ . __( ‘shop’ ) . ‘ < /b >< /a > ‘ ); ?>
    < ul id=”shopMenu” >
    < /ul>
    < /li >
    because it leaves a gap left of the icon in IE only.
    I copied it from an other menu structure but it wasn’t really meant to be on the sidebar I guess. (it was a submenu)

    site: https://www.mingei.be/wordpress

    I made spaces in the code so you can see it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1. This < /b >< /a > is certainly wrong: not nested correctly, a should be first, b after – according how they start.
    2. This tag creates links automatically, why the anchor <a> tag?

    Thread Starter dyin

    (@dyin)

    hey, I changed the order of a and be (I understand why). But this has no effect on how it is displayed.
    I have no idea what the < a > tag is for.. I’m a total noob. I work through trial and error. I tried to delete both < a> tags, but it doesn’t have a good effect.

    Thanks for your help btw, it is verry much appreciated.

    Would it be a good Idea to post the full menu structure?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘please have a quick look at this bit of code’ is closed to new replies.