Change Customizer in Child Theme

Hi,
Is there any info on editing the Customizer in a Child Theme?

In /wp-content/themes/newspaper-x/inc/customizer/settings/general/controls.php

you have

$wp_customize->add_control( new Epsilon_Control_Toggle(
                                $wp_customize,
                                'newspaper_x_enable_go_top',
                                array(
                                    'type'    => 'epsilon-toggle',
                                    'label'   => esc_html__( 'Go Top Button', 'newspaper-x' ),
                                    'section' => 'newspaper_x_footer_section',
                                )
                            )
);

What if you wanted to just make a simple change (for learning purpose only):

$wp_customize->add_control( new Epsilon_Control_Toggle(
                                $wp_customize,
                                'newspaper_x_enable_go_top',
                                array(
                                    'type'    => 'epsilon-toggle',
                                    'label'   => esc_html__( 'Go to Top Button', 'newspaper-x-child' ),
                                    'section' => 'newspaper_x_footer_section',
                                )
                            )
);

esc_html__( ‘Go to Top Button’, ‘newspaper-x-child’ ),

What would you have to do?

Hey there

Question is not formulated, im unable to get what is your goal? if you just want to experiment or change something you re free to make any customization in the template :slight_smile:

Hi,

Thanks.
Sorry if I wasn’t clear enough.

I’d like to know how to edit the Customizer in a Child Theme.
How can this be done?
If there’s any info / documentation on this?
What are the best practices?

I know that I could edit
/wp-content/themes/newspaper-x/inc/customizer/settings/general/controls.php

and it works, but this way I wouldn’t be editing the Child Theme, I would be editing the Theme itself which is a bad practice.

And placing a controls.php in
/wp-content/themes/newspaper-x-child/inc/customizer/settings/general/controls.php
simply doesn’t work.

Hey there

To edit any theme files add new or edit existing functions you need a experience of editing WordPress theme, without this, you will be not able to edit customizer features,
“how to edit the Customizer in a Child Theme.” - this question is a general question, to edit theme files you must understand how WordPress theme works and you need a knowledge of a PHP

Thanks