Support » Themes and Templates » <?php wp_register(); ?>

  • Resolved Dragen


    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
    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.


Viewing 5 replies - 1 through 5 (of 5 total)
  • Ok, I’ve just solved it 😛
    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
    then I need to put <?php wp_register('', ''); ?> where I want it?

    That’s my interpretation, yep. 🙂

    yeah, thanks again!
    worked great.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘<?php wp_register(); ?>’ is closed to new replies.