[theme-reviewers] [Help] converting "static front page" section into panel
Srikanth Koneru
tskk79 at gmail.com
Sun Sep 21 08:47:57 UTC 2014
Yep, that's what I did before Jose replied.
On Sun, Sep 21, 2014 at 2:14 PM, Thomas from ThemeZee <contact at themezee.com>
wrote:
> You can also use get_section() to set a panel for the default
> 'static_front_page' section:
>
> $wp_customize->get_section( 'static_front_page' )->panel = 'panel_id';
>
> 2014-09-21 0:41 GMT+02:00 Srikanth Koneru <tskk79 at gmail.com>:
>
>> Thanks Jose!
>>
>> On Sun, Sep 21, 2014 at 3:34 AM, Jose Castaneda <jomcastaneda at gmail.com>
>> wrote:
>>
>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> theme-reviewers mailing list
>>> theme-reviewers at lists.wordpress.org
>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>
>>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> _______________________________________________
> 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/20140921/a6975d0b/attachment-0001.html>
More information about the theme-reviewers
mailing list