• Resolved getwithrobby

    (@getwithrobby)


    *–Edit Posts– link on the twenty ten 1.2 theme*

    How can I get rid of the Edit link on the Home and Contact page of this theme

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter getwithrobby

    (@getwithrobby)

    It has something to do that I’m logged in. When I logout as admin the Edit link disappears.

    This is however a problem ’cause when I’m logged in doing admin work the Edit link will appear for users browsing the site.

    Any suggestions will be appreciated

    edit link only appears for administrator or editor (logged in).
    and disappears for others.

    so, just left it default.

    or
    open single.php
    add // before edit_post_link at line 56
    <?php //edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>

    Thread Starter getwithrobby

    (@getwithrobby)

    help me understand-
    so i need to edit single.php and add a line of text, correct?

    what i did was went to Appearance> Editor> then found single.php then opened it with an editor. It didn’t even have 56 lines in it.

    sorry but i’m not a coder!

    i’m sorry, i mean loop-single.php

    and yes. under Appearance> Editor>

    Thread Starter getwithrobby

    (@getwithrobby)

    i pulled up the editor and found the line

    <?php edit_post_link( __( ‘Edit’, ‘twentyten’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>

    i then put a // in front of edit_post_link making the line look like

    <?php //edit_post_link( __( ‘Edit’, ‘twentyten’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>

    is this what you meant for me to do?

    yes.

    also in loop-page.php line 30
    <?php //edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>

    Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes. Once your child theme is active, we should be able to help with the customisation.

    Thread Starter getwithrobby

    (@getwithrobby)

    timeDesain – that fixed it!

    unbelievable that a // in a line of code can do that. i don’t see how you guys & gals do this coding stuff!!!

    esmi – i will have to read up on how to make a child theme to edit instead of editing files in the main theme. as it stands now; the loop-single.php and loop-page.php files have been edited!

    @esmi. yes, i agree with you.

    // mean disable current line (php)

    @getwithrobby keep working

    please mark your topic as “Resolved”. Thanks

    https://codex.www.ads-software.com/Forum_Welcome

    Thread Starter getwithrobby

    (@getwithrobby)

    @timdesain, THANK YOU!

    you are welcome

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Remove Edit Posts link from twenty ten 1.2 theme’ is closed to new replies.