• Hi!

    I can’t change the placeholder text, only the label.
    I use my own theme for the plugin.

    [bmi theme=”none” height=”L?ngd” heightPlaceholder=”L?ngd (cm)” weight=”Vikt” weightPlaceholder=”Vikt (kg)” submit=”Ber?kna” result=”Ditt BMI ?r %bmi%”]

    The height and the weight works fine but the placeholders wont change.

Viewing 1 replies (of 1 total)
  • Is a bug of the plugin.

    wordpress transforms the “heightPlaceholder” string to “heightplaceholder” (lower case)

    Workaround:
    Open bmi-calculator-shortcode.php

    locate these two rows (lines 47 and 48):

    $heightPlaceholder = $attrs[‘heightPlaceholder’] ?: ‘Height’;
    $weightPlaceholder = $attrs[‘weightPlaceholder’] ?: ‘Weight’;

    change with these:

    $heightPlaceholder = $attrs[‘heightplaceholder’] ?: ‘Height’;
    $weightPlaceholder = $attrs[‘weightplaceholder’] ?: ‘Weight’;

    Enjoy

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t change placeholdertext’ is closed to new replies.