WordPress.org

Forums

Bouquet
[resolved] widgets setup (9 posts)

  1. WP-vz
    Member
    Posted 2 years ago #

    Hello,
    I am trying to figure out if it is possible to remove some items(links) from the META widget, e.g. RSS related. But keep the rest and possibly add extra links.
    Your help is appreciated. Many thanks.

  2. Lance Willett
    Themer
    Posted 2 years ago #

    Hi there,
    This isn't related to a theme, as widgets work with any theme.

    You can check for plugins that add or modify the Meta widget, there is probably one out there. :)

  3. WP-vz
    Member
    Posted 2 years ago #

    I found out one quick fix. It is true, it's not related to a theme, but rather the core. In wp-dir/wp-includes/default-widgets.php find the function widget(). A few lines of code there define what is going to show in the pages in that area.
    It is not a pretty solution as it's not a good idea to change the core code, but if one needs to have a quick and dirty fix -- here you go.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    No! Never, ever, edit WordPress core scripts. And do not encourage others to do so. Editing core scripts can bring down your entire site and/or open security holes for hackers to use.

  5. WP-vz
    Member
    Posted 2 years ago #

    esmi, don't be paranoid. this tip is not about changing functionality of the core code, it's about deleting (commenting out) a link, i.e. < a > tag. :-)

    [Please post markup tags between backticks or use the code button.]

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    You should not edit WordPress core files at all. Full stop. It is invariably not necessary.

  7. WP-vz
    Member
    Posted 2 years ago #

    tell me about a "legal" way to disable/delete unnecessary links in the Meta area?

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    By creating your own meta widget as an extension of the native one using a child theme or installing a suitable plugin.

  9. WP-vz
    Member
    Posted 2 years ago #

    great idea, thanx

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic