Support

Home Forums Event Espresso Premium I want to remove "Use Attendee #1's information for ALL attendees" default again

I want to remove "Use Attendee #1's information for ALL attendees" default again

Posted: February 14, 2015 at 11:56 am

Viewing 4 reply threads


John Fineberg

February 14, 2015 at 11:56 am

I don’t know why the “Use Attendee #1’s information for ALL attendees” default is back again, but it is. If I’m not mistaken, it should have been removed with something in this My Custom CSS code:

.display-tckt-slctr-tkt-details {
display: none;
}
/* Hide h2 heading on single event pages */
.espresso_events h2.post_title {display:none;}
#spco-registration-attendee_information-frm>br {display:none;}
<?php
//* Do NOT include the opening php tag

//* Change the messaging for the additional tickets/attendees on the registration checkout page
add_action( ‘FHEE__registration_page_attendee_information__auto_copy_attendee_pg’, ‘ee_custom_messaging_above_information_additional_tickets_attendees’ );
function ee_custom_messaging_above_information_additional_tickets_attendees() {

return ”;
}

So I tried adding other code I’ve seen on EE forums. This code from Lorenzo:

#spco-copy-attendee-dv{display:none}

And this code from Dean:

div#spco-copy-attendee-dv {
display: none;
}

Anyway, all I can say is that it’s no longer working, and adding those two new codes from Lorenzo and Dean (separately) had no effect.

Your thoughts?


Tony

  • Support Staff

February 16, 2015 at 11:21 am

Hi John,

On my test sites the code from both @Lorenzo and @Dean works correctly in hiding that element on the page.

However, the code you have pasted above contains PHP code, that should not be within you custom CSS. This part:


Was that a typo or is that included?

If so that will likely affect the CSS rules after that code.

  • This reply was modified 9 years, 10 months ago by Tony.


John Fineberg

February 16, 2015 at 12:35 pm

Thanks for responding, Tony. I eliminated the improper code and replaced it with Dean’s code. And that did the trick!

Hard to say who told me to put that code in My Custom CSS (and it’s not worth taking the time to determine who it was), but I’m quite certain it came from someone at Event Espresso. I’m not qualified to make up code like that, and I wouldn’t have placed it there (rather than some other location) without being instructed to do so. (And any code I’ve been given by my theme developer I’ve placed in their CSS-specific field.)

That said, I’ve now eliminated the PHP-related code from My Custom CSS. Does it belong somewhere else, or should I just delete it altogether?


Tony

  • Support Staff

February 16, 2015 at 1:00 pm

It is another method for altering this string:

‘The above information will be used for any additional tickets/attendees.’

It changes that to an empty string.

As your hiding the whole element that string is within you can just remove it.

Just for future ref, a CSS declaration will looks something like this:

#some-event-id .some-element-class {
/*properties*/
background-color: #000;
width: 100%;
}

PHP statements from ourselves usually start with an opening php tags:

<?php

But will have keywords (such as function, return etc) and variables with $ at the begging like:

function some_function_name() {
$some-variable = "Hello World";
}

Within WordPress you’ll find alot of add_action() add_filter() if you see something similar, its PHP. (A little general but should help)


John Fineberg

February 16, 2015 at 1:08 pm

Thanks again. Case closed on this one!

Viewing 4 reply threads

The support post ‘I want to remove "Use Attendee #1's information for ALL attendees" default again’ 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