Forums

[resolved] Remove Meta links in sidebar but not whole thing? (7 posts)

  1. lcnewbie
    Member
    Posted 6 years ago #

    Hi, I would like to remove some specific links only in the Meta section of the sidebar - is this possible without removing the whole thing? I need to keep 'login' and 'register' but delete everthing else. Also, I would like to remove the search box as this is not needed.

    Any help would be appreciated

    Site is http://www.maternityhealth.co.uk if thats any help. (I have renamed 'Meta' to 'Members')

    Thanks

  2. Chris_K
    Member
    Posted 6 years ago #

    Sure. Edit your theme's sidebar.php and tear 'em out.

  3. lcnewbie
    Member
    Posted 6 years ago #

    Thanks HandySolo - unfortunately I am still really new to PHP and WordPress and have a fear of undoing all my hard work so far! What do I take out without messing it up completely?

  4. Chris_K
    Member
    Posted 6 years ago #

    I have no clue - many themes are different.

    First, before editing anything, always save a backup of the file somewhere. That way, if you hose it all up, you can undo your changes.

    What you want to remove is likely towards the very bottom of your sidebar.php. Each one of this items is part of a html list -- to delete, you just find the starting <li> and the ending </li> for that item and ... DELETE it! :-)

    Side note:
    May I suggest that you don't delete your RSS links in that section? You'll likely have readers who are hip to the whole RSS reader scene. If they can't subscribe, you'll never see 'em again.

  5. lcnewbie
    Member
    Posted 6 years ago #

    magic thanks for that - good point on the RSS links!

    I have found the code to delete (hoorah) - do I delete the actual

  6. and
  7. as well?

  • Chris_K
    Member
    Posted 6 years ago #

    can you edit that last post and wrap the tags in the "back tick" so I can see 'em? Not the apostrophe, but the one usually up in the top left corner of your keyboard.

    If you were asking about the <li> and </li> tags, yes - delete them as part of that line.

  • lcnewbie
    Member
    Posted 6 years ago #

    Sorry about that - thats exactly what I was asking! Thanks so much for your help

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.