How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Adding a new customizer option in Review Style


Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #17219

    Hi there!

    I’m using Pokatheme 4.03 with a child theme.

    I would like to add a new option “Review style4” in the Review style dropdown in Customizer > Visual Settings > Review > Review Style.

    (I already created the corresponding new style tempalte in /inc/templates/affiliates/affiliates-single-style4.php – that part is OK)

    I thought adding the following code in child’s functions.php would suffice to replace the existing dropdown by a new one with the 4th option appended at the end of the array,
    but it doesn’t work: the dropdown still only display the 3 style options, not the last.

    function new_customizer_settings($wp_customize) {

    new WP_Customize_Control(
    ‘label’ => __( ‘Review style’, ‘poka’ ),
    ‘section’ => ‘visual-reviews-section’,
    ‘settings’ => ‘general-review-style’,
    ‘type’ => ‘select’,
    ‘choices’ => array(
    ‘style1’ => ‘Review style1’,
    ‘style2’ => ‘Review style2’,
    ‘style3’ => ‘Review style3’,
    ‘style4’ => ‘Review style4 (NEW)’ // added this line
    add_action(‘customize_register’, ‘new_customizer_settings’);

    What am I doing wrong here?



    Looks like it’s not the way to do it.

    How should I override Poka_Customizer class in order to alter simply that Review Styles drop down?

    Any other way / ideas to achieve this?

    thanks for assistance!


    Hi Jean,

    I’m sorry for the late reply!
    Currently there is no way to alter the options of this dropdown.
    We will add a new filter in the next version in order to have the ability to change these options from your child theme.



    ok, got it, thanks for letting me know 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.