TIP: wp_register() and getting rid of list item tags
-
I wish to put both the wp_register and wp_loginout items (includes? templatewhachamiggies?) in the footer of a new Wp 1.5 template/theme. When I did, the wp_register() item inserted a line break. Further investigation to a reference site for WP (site uses frames, scroll way down to find wp_register() item) reveals the following:
wp_register( $before = "<li>", $after = "</li>" )
I assume that the
<li>
tags are defaults. That’d explain the line breaks. And I could modify them to “nothing” by supplying different, um whaddayacallem?, arguments, as shown here:
wp_register("","")
I tried it; it worked.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘TIP: wp_register() and getting rid of list item tags’ is closed to new replies.