Posted: February 22, 2014 at 2:09 pm
|
Just installed the Member/User add on for EE and am wondering how I can eliminate a few things that are displayed by default: The “Show” selector that allows you to change the number events shown. How can I do this in EE? |
|
Hi, Filter wise, you can hide this with CSS /* hide the show entries */ #table_length { display: none; } /* hide the live search */ #table_filter { display:none; } Regarding the columns, there isn’t an easy way to do this, barring modifying the actual template file. This would be found in plugins/espresso-members/my_events_page.php The pagination is handled by javascript so it is currently untranslatable (unless you hack the file). We have an outstanding ticket to look into this but I cannot say when this will be. |
|
Thanks Dean! I was able to hide the filters using the CSS you provided. I could get the columns to go away by editing the file you mentioned, but it also removes the pagination. (Only when hiding the table columns, not the corresponding table header columns.) Here are the lines I commented out: <code><td class="date column-date"><?php echo $org_options[ 'currency_symbol' ] ?><?php echo $amount_pd?></td> <td class="date column-date"><a href="<?php echo home_url();?>/?download_invoice=true&admin=true&registration_id=<?php echo $registration_id ?>" target="_blank" title="<?php _e('Download Invoice', 'event_espresso'); ?>"><img src="<?php echo EVENT_ESPRESSO_PLUGINFULLURL ?>images/icons/page_white_acrobat.png" width="16" height="16" alt="<?php _e('Download Invoice', 'event_espresso'); ?>" /></a></td></code> I’m guessing there’s something in there that makes the pagination appear, but I can’t figure it out. Any ideas? |
|
Sorry, didn’t input the code properly… <pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”><td class="date column-date"><?php echo $org_options[ 'currency_symbol' ] ?><?php echo $amount_pd?></td> |
|
Ugh… Please delete the previous two posts—couldn’t figure out how to do that. Will try to paste the code one more time… <pre class=”brush: text; gutter: true; first-line: 1; highlight: []; html-script: false”> <td class="date column-date">< a href=""<?php">/?download_invoice=true&admin=true®istration_id=<?php echo $registration_id ?>" target="_blank" title="<?php _e('Download Invoice', 'event_espresso'); ?>">images/icons/page_white_acrobat.png" width="16" height="16" alt="<?php _e('Download Invoice', 'event_espresso'); ?>" /> a></td> |
|
Sorry, can’t figure out how to paste the code properly… |
Hi Trevis, You could try to post the code in a Github gist or into a pastebin at pastebin.com and post a link here. |
|
|
Awesome, thanks Josh!: http://pastebin.com/NF5EirgK So, when I comment those lines out of the My Events page to try and hide the Price and Invoice columns, the pagination disappears and I don’t understand why. redacted-loc
|
|
Hi, The reason being is the javascript is trying to find those columns, failing and throwing an error. You would be better off adding an extra class to both column’s td’s and the th’s and then use CSS’ display:none to hide them |
|
Thanks again Dean, that worked great! |
The support post ‘My Events Page – Eliminating some default items’ 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.