Remove sitelink, comments and wordpress embed from single posts

Home Forums Calendar Products Events Calendar PRO Remove sitelink, comments and wordpress embed from single posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1226104
    Luke
    Participant

    Hi guys,

    A very simple one here, I’m sure, but not one I don;t seem to be able to find an easy fix for.

    When embedding single events onto another page, it’s advised to just paste the link to the event and it will display, which works fine. It shows all the relevant info – title, venue, cost, description etc.

    However, at the bottom, it also shows a link to the main URL, a link to the comments for that event, and a wordpress sharing icon for embedding.

    I want to remove these three elements at the bottom, that’s all. I’ve tried some custom CSS but can’t get it to work.

    Hope that all makes sense and is an easy remedy!

    Thanks,

    Luke.

    #1226729
    Andras
    Keymaster

    Hi Luke,

    Thanks for going Pro and welcome to the forums! Great question you have there.

    The oEmbed function is a core WordPress function, so not really related to our plugins. You might find some info on WordPress.org on how to properly remove those links.

    I can share with you a simple CSS solution that should do the trick. Just add this to your theme’s style.css file:

    .wp-embed-footer {
    display: none;
    }

    Check and let me know if this helps.

    Cheers,

    Andras

    #1227038
    Luke
    Participant

    Hi Andras,

    Thank you for your response and many thanks for being so quick!

    I’d already tried your CSS suggestion, plus a few others, but sadly no luck.

    I’ve tried adding different recommended functions to the functions.php but either these do not work, or they remove the entire shared content, not just the footer for it.

    Disable Embeds plugin, also, just disables the whole thing.

    I understand now this isn’t an issue with the events calendar so I will keep trying! Many thanks again for your help.

    Luke.

    #1227605
    Andras
    Keymaster

    Hmmm…. yeah, the embeds come in an iFrame, and if the content in the iframe comes from a different domain, then it doesn’t work. But even if, then it is tricky.

    I’m sorry I cannot help you more with this. Maybe this page will help you get started though:

    http://stackoverflow.com/questions/217776/how-to-apply-css-to-iframe

    Cheers and good luck!
    Andras

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove sitelink, comments and wordpress embed from single posts’ is closed to new replies.