Hi,
I'm trying to design my own template, but have ran into a small problem.
I'm trying to use the
<?php wp_register(); ?>
code in my footer. The problem is that for some reason it places it within
<li></li>
tags. This is a bit of a pain.. can I change this?
I've only just started with wordpress about two minutes ago, so I'm not sure which files to edit to change this kind of stuff yet.
Thanks,
Lee
Ok, I've just solved it :P
open up wp-includes/general-template.php
then find
function wp_register( $before = '<li>', $after = '</li>' ) {
Simply edit the $before and $after parts.
You will definitely hate yourself after your next WP Upgrade (that change will be gone....).
As a rule of thumb, don't edit core files. Edit theme files instead (wp-content/themes/YourThemeName).
Check out the documentation on wp_register.
oh, okay. thanks.
So if I want it displayed without
<li></li>
then I need to put <?php wp_register('', ''); ?> where I want it?
That's my interpretation, yep. :-)
yeah, thanks again!
worked great.