Support

Home Forums Event Espresso Premium Editing the template code for Promotion Code

Editing the template code for Promotion Code

Posted: March 27, 2016 at 4:09 pm

Viewing 6 reply threads


Chingy

March 27, 2016 at 4:09 pm

Hi

I’m trying to edit the code for the promotion code so that I can remove an annoying BR tag which is stopping me from formatting the page nicely.

screen: http://s21.postimg.org/d2wwculbr/screenshot_105.png

I can’t find it in any of the templates, can someone help point me in the right direction please?

Thanks


Lorenzo Orlando Caum

  • Support Staff

March 28, 2016 at 11:15 am

Hello,

Have you considered using CSS to move the label or is the line break causing some odd spacing?

Is a screenshot available?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


Lorenzo


Chingy

March 29, 2016 at 1:22 pm

Hi Lorenzo

I included a screenshot in my original post ๐Ÿ™‚


Chingy

March 29, 2016 at 1:22 pm

Hi Lorenzo

I included a screenshot in my original post ๐Ÿ™‚

screen: http://s21.postimg.org/d2wwculbr/screenshot_105.png


Lorenzo Orlando Caum

  • Support Staff

March 29, 2016 at 1:51 pm

Hi, I can see the line break in the code screenshot but my question was more for seeing the actual page display.

Have you tried using CSS to reposition the element?

If not, then could you share a link to an event so we can then reach your checkout page?


Lorenzo


Chingy

March 29, 2016 at 2:16 pm

I can’t reposition it with css as the br tag is stopping me from moving it up.
I’m essentially trying to put the label, the field and the submit button on the same line.

I can direct private message you a link if you need it?


Tony

  • Support Staff

March 29, 2016 at 3:11 pm

Hi there,

Those BR tags are all within a single element, so you can target them with CSS using something like this:

#ee-spco-payment_options-reg-step-form-payment-options-before-payment-options br {
    display: none;
}

Or even using a direct child selector, like this:

#ee-spco-payment_options-reg-step-form-payment-options-before-payment-options>br {
    display: none;
}

Both should have the same effect and allow show the promotion code elements on a single line – http://take.ms/8bkMo

Those promotion code elements are added within an output strategy used for the forms, the BR’s can not easily be removed from the output without removing the current hook EE uses and adding the promotion fields yourself.

Viewing 6 reply threads

The support post ‘Editing the template code for Promotion Code’ 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