theme_text_domain what is it and what does it want? (2 posts)

  1. NormanBird
    Posted 3 years ago #

    Im adding a sidebar and I see the name field of the array says twentytwelve. I understand that is called the "theme_text_domain" but the page does not explain that it is or what it means or why its there. looks like its simply supposed to be the theme name. Is it? not very intuitive or semantic.

    Can someone shed some light on this, as I find little info.


    register_sidebar( array(
    		'name' => __( 'Main Sidebar', 'twentytwelve' ),
    		'id' => 'sidebar-1',
    		'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => '</aside>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
  2. Clayton James
    Posted 3 years ago #

    I believe it's used in theme localization. Some reference material: Function Reference/load theme textdomain

Topic Closed

This topic has been closed to new replies.

About this Topic