Support

Home Forums Event Espresso Premium Where to place the code I find in the forums

Where to place the code I find in the forums

Posted: December 26, 2019 at 9:23 am


Lafayette

December 26, 2019 at 9:23 am

Hi there.
I have found answers to many of my questions for what the code should be but I’m not seeing where to place the code.
I’m working in WP with the Divi Theme and using EE4.
I
need to eliminate the price column for my registration and add a ninja form to sign up for the waitlist after ticketing is filled. I used this https://eventespresso.com/wiki/using-ninja-forms-to-create-wait-lists-for-your-events/ for setting up the form, but now I do not know where to put the code.

And this https://eventespresso.com/topic/removing-0-price-on-free-events/ for the column but not sure where to put the code.
Help, please.
Thank you!


Lafayette

December 26, 2019 at 9:24 am

Hi there.
I’m not seeing where to place the code when working in WP with the Divi Theme and using EE4.
I need to eliminate the price column for my registration and add a ninja form to sign up for the waitlist after ticketing is filled. for setting up the form, but now I do not know where to put the code.

And for the column but not sure where to put the code i found.
Help, please.
Thank you!


Tony

  • Support Staff

December 26, 2019 at 1:54 pm

Hi there,

If its CSS we usually advise using Dashboard -> Appearance -> Customize -> Additional CSS.

If its PHP we recommend you add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Which code are you looking to add to your site?


Lafayette

January 1, 2020 at 9:52 am

I’m looking to add a ninja form using this:
https://eventespresso.com/wiki/using-ninja-forms-to-create-wait-lists-for-your-events/
And I wanted to remove a column in EE4, and I found like this:
https://eventespresso.com/topic/removing-0-price-on-free-events/

In the DIVI theme that I am using there is an advanced Custom CSS location for the code, but maybe I am inputting it wrong?
There is a section for:
Before
Main Element
After


Josh

  • Support Staff

January 2, 2020 at 11:17 am

Hi,

Both of the examples you linked to have PHP code, which is a different type of code than CSS. A recommended way to add PHP code to your site is add a small plugin. WordPress plugins are also PHP. We have a guide on how to add a small plugin to your site:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Lafayette

January 2, 2020 at 2:49 pm

I would prefer to use CSS, in the Divi theme there is a section to add custom CSS for just the module you are working within.

Where would I go to find CSS that I can put in to alter this table?

<div style=”width:100%; height: 500px;”>
<iframe src=”http://lmgny.com?event=31781&ticket_selector=iframe” width=”100%” height=”100%”></iframe>
</div>

In the table I want to change the button color and remove the price column.


Josh

  • Support Staff

January 2, 2020 at 3:45 pm

Hi,

There are some things that you just cannot do with CSS. Programmatically adding a Ninja Form is an example of something that cannot be done with CSS.

Now with your table, you should note that iframes cannot be styled with CSS that’s normally applied to anywhere else on the page.

What you could instead is use a shortcode there.
1) Remove the iframe code
2) Replace with: [ESPRESSO_TICKET_SELECTOR event_id=31781]

Then you can use custom CSS for just the divi module.

Some examples follow:

.tkt-slctr-tbl-wrap-dv .ticket-selector-submit-btn {
    color: #8d2924;
    background-color: #8d2924;
}
.ee-ticket-selector-ticket-price-th, 	
.tckt-slctr-tbl-td-price { 	
	display:none; 	
}


Lafayette

January 6, 2020 at 6:05 am

Thank you!


Tony

  • Support Staff

January 6, 2020 at 6:32 am

Just to note, the code to add the Ninja Form as a waitlist for an event was created before the Waitlist add-on was available for Event Espresso.

Just in case you are not aware that we have an add-on for this it is available here:

https://eventespresso.com/product/eea-wait-lists/

The support post ‘Where to place the code I find in the forums’ 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