WordPress.org

Ready to get started?Download WordPress

Forums

front-end editor takes me to dashboard (9 posts)

  1. legalmax
    Member
    Posted 2 years ago #

    I'm using front-end editor & Role scoper. When I'm logged in & press on the edit link it takes me back to to dashboard. What have I done wrong?

  2. scribu
    Member
    Posted 2 years ago #

    There can be multiple Edit links on the page. Front-end Editor shows one on the left of the content, which moves along with your cursor.

  3. legalmax
    Member
    Posted 2 years ago #

    The link I'm talking about is the single underlined blue link that appears at bottom of page when using experimental link facility. I'm using this because not using it means that the html version is shown & my users would be so confused.

  4. legalmax
    Member
    Posted 2 years ago #

    Forget html thing - was thinking of something else. Have now reverted to Enable the WYSIWYG editor - only. Slider edit button now appears in Firefox, IE & Chrome - if you're patient! BUT edit link still appears & if clicked goes to dashboard. If the link is supposed to be there & do that can I remove it? I can tell users NOT to click it but we all would;-)

  5. scribu
    Member
    Posted 2 years ago #

    Yes, you can either hide it through CSS or remove the edit_post_link() call from the theme file.

  6. legalmax
    Member
    Posted 2 years ago #

    Give me a clue. I'm using Twentyten. Where do I find CSS or the edit_post_link() call in the theme file? Ta.

  7. davidosullivan
    Member
    Posted 2 years ago #

    Look in wp-content/themes/twentyten/loop-page.php around line
    around line 30
    change this:-
    edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' );
    to this:-
    //edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' );

    and in wp-content/themes/twentyten/loop-page.php
    around line 56
    change this:-
    edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' );
    to this
    //edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' );

    and in wp-content/themes/twentyten/loop.php
    around line 100
    change this:-
    edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' );
    to this:-
    //edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' );

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    No! Don't edit the Twenty Ten theme. Instead create a child theme for your changes.

  9. legalmax
    Member
    Posted 2 years ago #

    Many thanks davidosullivan. The 2dn loop-page is loop-single. esmi I can never get child themes to work for me.

Topic Closed

This topic has been closed to new replies.

About this Topic