• I am using the piano string theme and in the post, there is a link at the top that says “edit”. I don’t want a visitor to edit my posts, only comment are allowed. How do I disable that link?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you sure you’re not logged in already when viewing your posts, edit links are usually only displayed for logged in users who have editing permissions.

    Anyhow if you are certain that non-logged in visitors are seeing this you need to edit the template file for the theme where this is appearing, i’m assuming it’s going to be in single.php, so find the file..

    wp-content/themes/themename/single.php

    This is the template file for single posts. Then look for something relating to “edit” and change it to: <?php edit_post_link(); ?> Information about this function:

    Quote (edit_post_link):

    Displays a link to edit the current post, if a user is logged in and allowed to edit the post. It must be within The Loop.

    Thread Starter spider58

    (@spider58)

    Well duh!!

    I guess I’m the crazy one here. I logged out and as you said the edit icon went away.

    Thanks for that information

    I’m wanting to add an image in the sidebar. Would you know how I can do that in this same theme.

    The address is https://www.takepianolessons.net

    Thanks,
    Mike

    Yea is it a widgetized sidebar? Then just go into your Admin Dashboard and drag over a text widget, and in that add the image code:

    <img src=”img.jpg” width=”100″ height=”100″ />

    Replace the src width and height att’s obviously!

    If it’s not a widgetized sidebar you can add the code in your themes sidebar file (most likley to be sidebar.php)

    Although by the looks of your sidebar it looks like you’ve found a solution already!

    Thread Starter spider58

    (@spider58)

    Hey thanks,

    It’s working fine now.

    Mike

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘do not allow visitor to edit post’ is closed to new replies.