Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeater control not showing up in customizer #2497

Open
valenjeb opened this issue Jan 11, 2023 · 1 comment
Open

Repeater control not showing up in customizer #2497

valenjeb opened this issue Jan 11, 2023 · 1 comment

Comments

@valenjeb
Copy link

Issue description:

Repeater control is not showing up in the customizer at all. I tried to check it with the demo theme and faced the same issue. All fileds are shown except the repeater.

Version used:

4.0.24

Using theme_mods or options?

theme_mods

Code to reproduce the issue (config + field(s))

new \Kirki\Field\Repeater(
    [
        'settings' => 'repeater_setting',
        'label'    => esc_html__( 'Repeater Control', 'kirki' ),
        'section'  => $sectionID,
        'priority' => 10,
        'default'  => [
            [
                'link_text'   => esc_html__( 'Kirki Site', 'kirki' ),
                'link_url'    => 'https://kirki.org/',
                'link_target' => '_self',
                'checkbox'    => false,
            ],
            [
                'link_text'   => esc_html__( 'Kirki WP', 'kirki' ),
                'link_url'    => 'https://wordpress.org/plugins/kirki/',
                'link_target' => '_blank',
                'checkbox'    => true,
            ],
        ],
        'fields'   => [
            'link_text'   => [
                'type'        => 'text',
                'label'       => esc_html__( 'Link Text', 'kirki' ),
                'description' => esc_html__( 'Description', 'kirki' ),
                'default'     => '',
            ],
            'link_url'    => [
                'type'        => 'text',
                'label'       => esc_html__( 'Link URL', 'kirki' ),
                'description' => esc_html__( 'Description', 'kirki' ),
                'default'     => '',
            ],
            'link_target' => [
                'type'        => 'select',
                'label'       => esc_html__( 'Link Target', 'kirki' ),
                'description' => esc_html__( 'Description', 'kirki' ),
                'default'     => '_self',
                'choices'     => [
                    '_blank' => esc_html__( 'New Window', 'kirki' ),
                    '_self'  => esc_html__( 'Same Frame', 'kirki' ),
                ],
            ],
            'checkbox'    => [
                'type'    => 'checkbox',
                'label'   => esc_html__( 'Checkbox', 'kirki' ),
                'default' => false,
            ],
        ],
    ]
);
@wvffle
Copy link

wvffle commented Oct 22, 2023

I have the exact same problem with the 4.2.0 version. There are no PHP errors and no JS errors in the console.

The code from https://docs.themeum.com/kirki/controls/repeater/ does not work either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants