Forums

The Events Calendar
How can I remove "more-info" from the sidebar? (7 posts)

  1. elianab
    Member
    Posted 1 year ago #

    How can I remove "more-info" from the sidebar? There is no need for the more info link, since it goes to the same place as if you click the title of the post.

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. thatwaslikewoah
    Member
    Posted 1 year ago #

    Also in search of this answer . . . thanks

  3. gideon@tristar.co.za
    Member
    Posted 1 year ago #

    me too

  4. elianab
    Member
    Posted 1 year ago #

    I figured out how to remove more info from the sidebar. Add this to your css:
    #sidebar a.more-link {
    display:none;
    }

    There may be a better way, but this worked for me.

  5. thatwaslikewoah
    Member
    Posted 1 year ago #

    Hey elinaab,

    Where did you add that code?

    Thanks

  6. elianab
    Member
    Posted 1 year ago #

    I put it in my style sheet. Your code might be a little different. Mine has #sidebar because my sidebar is inside a div named #sidebar.If your sidebar has a different name, use that. It might work without the #sidebar, so it would look like:

    a.more-link {
    display:none;
    }

    Their "more info" link is inside a class called more-link. Since it's a link, you refer to it in the style sheet as a.more-link. So I am saying that the contents of that class should not display.

  7. bobbingwide
    Member
    Posted 1 year ago #

    I believe the "better way" is to remove it from the line of code that creates it from the widget.
    The original source is in wp-content/plugins/the-events-calendar/views/events-list-load-widget-display.php

    steps to take are

    1. Copy this file to an events subdirectory in your theme
      eg wp-content/themes/mythemename/events
    2. edit the file and remove the line shown below. It's close to the bottom of the file

    <a class="more-link" href="<?php echo get_permalink($post->ID) ?>"><?php _e('More Info', $this->pluginDomain); ?></a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic