Changing default Display for My Events

Home Forums Calendar Products Community Events Changing default Display for My Events

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1019611
    Mad Dog
    Participant

    On the My Events page the columns shown are controlled by the DISPLAY link at the top. How can I only show certain columns for all users since a couple of the columns (category and recurring) aren’t being used?

    THANKS
    Mad Dog

    #1019616
    Mad Dog
    Participant

    P.S. I do realize I can comment out those <th> lines in event-list.php and maybe I should do that. And then also get rid of or hide the “Display” link. But is there a better way to accomplish this?

    #1019850
    George
    Participant

    Hey @Mad Dog,

    Commenting out the table headers is fine; there’s really no difference in using another method like writing CSS. If you would like to write CSS instead, definitely check out a [free!] tool like Firebug if you use FireFox, or the Developer Tools for either Safari or Chrome. They have “Inspector” tools that let you zoom right over the elements you’d like to remove, like table columns etc., and so would be very helpful in finding out what CSS selectors to use for you.

    Cheers,
    George

    #1019915
    Mad Dog
    Participant

    Thanks for getting back to me. It’s not just the table header but the <td>s themselves in the loop that need to go. I wondered if there was a function I could use to, say, target the dropdown and automatically uncheck those two columns so they wouldn’t appear.

    In case anyone else needs to do this, I hid them using CSS since it turns out each of those columns have unique classes (good work, some coder!). So this did the trick:

    .events-community.my-events .optional1 {display:none !important}
    .events-community.my-events .optional2 {display:none !important} 

    MD

    • This reply was modified 10 years, 5 months ago by Mad Dog.
    #1020286
    George
    Participant

    Thanks for sharing your solution @Mad Dog!

    Best of luck with your project 🙂

    — George

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Changing default Display for My Events’ is closed to new replies.