Support

Home Forums Event Espresso Premium Discount code input field customizing

Discount code input field customizing

Posted: August 29, 2015 at 2:36 pm

Viewing 1 reply thread


KIROS

August 29, 2015 at 2:36 pm

Hi! I would like to edit the label for the discount code input form and the size of the inout field. I’ve been able to target the position with custom css but not the width of the field and label. I found this in the php files:

‘html_label_text’ => apply_filters(
‘FHEE__EED_Promotions___add_promotions_form_inputs__ee_promotion_code_input__html_label_text’,
EEH_HTML::h4( $this->_config->label->singular )
)
)
),

and thought I could edit it there but I can’t for some reason. Please help! Thanks!


Dean

August 31, 2015 at 5:48 am

Hi,

The code you listed is for changing the input field label:

function promo_label($label) {

	$label = "My New Promo Label";
	return $label;

}
add_filter('FHEE__EED_Promotions___add_promotions_form_inputs__ee_promotion_code_input__html_label_text', 'promo_label');

Regarding the CSS, try something like:

input#ee-promotion-code-input {
    width: 200px !important;
}
Viewing 1 reply thread

The support post ‘Discount code input field customizing’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso