Edit This Page must go!

Home Forums Calendar Products Community Events Edit This Page must go!

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

    When a logged-in user is on their LIST page and they click VIEW under an event, they go to a page that shows the event. In the lower right corner is a button “Edit This Page” which takes them into the WP Dashboard Edit area! I don’t know if this is odd for our set-up but I don’t want the Users to see anything like that. That’s why I’m using TEC.

    So…I just want to remove that button but can’t see which template page is being used. I did it using CSS
    .post-edit-link {display: none;} but I’m afraid it might affect something somewhere else on the site where I might want it. Not sure I can target that page because it’s dynamic.

    What template page can I modify to get rid of that?

    THANKS!

    #1019538
    George
    Participant

    Hi @Mad Dog,

    This is a standard WordPress feature; I notice that you said that this bit of CSS worked:

    .post-edit-link {display: none;}

    If that’s the case but you just want to limit this to Events so that it doesn’t affect other parts of your site, like you mentioned, try making it more specific CSS like this:


    body.post-type-archive-tribe_events .post-edit-link,
    body.single-tribe_events .post-edit-link {
    display: none;
    }

    I hope that helps!

    Cheers,
    George

    #1019552
    Mad Dog
    Participant

    Duh!

    Thanks. The client’s freakin’ and I was thinking along the lines of adding a page-id which wouldn’t work. Didn’t think of this specificity. THANKS!

    I am curious though….while it’s a WP function if it’s on the page you go to after clicking “View” on the Edit Event page, it must be being called by a TEC template page, yes?

    #1019815
    George
    Participant

    It’s called by your theme eventually, which is a good thing in general – I mean more that the “convention” of an “edit post” link is a standard WordPress convention since the earliest versions of the software…

    I’m glad you’ve got things resolved here. Best of luck with your site!

    — George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Edit This Page must go!’ is closed to new replies.