WordPress.org

Ready to get started?Download WordPress

Forums

Can't rename a new dynamic sidebar (3 posts)

  1. LoneWolfPR
    Member
    Posted 2 years ago #

    I'm using the following code to create a dynamic sidebar:

    function register_new_sidebars(){
    		register_sidebar(array('name' => 'Contact Page'));
    	}

    However, in my admin section the new widget block just shows with the title 'Sidebar1'. What am I doing wrong?

  2. Jonas Grumby
    Member
    Posted 2 years ago #

    http://codex.wordpress.org/Function_Reference/register_sidebar

    or

    http://codex.wordpress.org/Function_Reference/register_sidebars (for more than one sidebar). It's not clear to me whether you are trying to register one sidebar or multiple sidebars.

  3. LoneWolfPR
    Member
    Posted 2 years ago #

    Oops. Minor issue I fixed. I was calling my register_new_sidebars function with an add_action. I was doing that incorrectly.

Topic Closed

This topic has been closed to new replies.

About this Topic