[theme-reviewers] [Help] converting "static front page" section into panel
Jose Castaneda
jomcastaneda at gmail.com
Sat Sep 20 22:04:24 UTC 2014
Quick and dirty:
add_action( 'customize_register', 'custom_customizer' );
function custom_customizer( $wp_customize ){
$wp_customize->add_panel( 'front_page', array( 'title' =>"Front page
settings", 'description' => 'Settings panel for the front page' ) );
$wp_customize->add_section( 'static_front_page', array( 'title' =>
'Static front page', 'panel' => 'front_page' ) );
}
Of course any translation if needed/wanted but does the trick.
On Sat, Sep 20, 2014 at 1:20 PM, Srikanth Koneru <tskk79 at gmail.com> wrote:
> Did anyone do it already? If so will save me some time :)
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140920/2be26370/attachment.html>
More information about the theme-reviewers
mailing list