Missing post edit button on home page

Viewing 4 posts - 1 through 4 (of 4 total)
  • #11736
    petkusj
    Participant

    OK, unless there’s a button somewhere that turns this one that I’ve overlooked, I can’t figure out how to add an edit button/link on the posts on the “home” page of my blog. I assume somewhere I need to add a call to edit_post_link, but I don’t know whether to do that in index.php or one of the template files.

    Your advice will be much appreciated.

    Jennifer

    #11783
    Daniel Tara
    Keymaster

    It only displays on single-column posts, it doesn’t display on multi-column posts due to content-constrain issues.

    #11795
    petkusj
    Participant

    Daniel, I can certainly understand not showing an edit link to ordinary subscribers, but it would be very convenient for me, the site administrator, to be able to directly edit a post from the home page of the blog. I need little more than an icon or the word “Edit” in small print as a link. Maybe even as insignificant as making the ellipsis at the end of the abbreviated text be the edit link.

    I tried adding the edit_post_link code to index.php, but the links are all crammed at the top of the container div.

    The many wonderful features of this theme far outweigh the loss of the edit button, however, and so I happily continue to use Pinboard. I put it under the category of: It would be nice.

    Thanks for responding, Daniel.

    Jennifer

    #11884
    petkusj
    Participant

    Oh, I thought I was so close. I liked the idea of making the ellipsis the edit link by overriding this function (in functions.php):

    if ( ! function_exists( ‘pinboard_excerpt_more’ ) ) :
    /**
    * Changes the default excerpt trailing content
    *
    * Replaces the default […] trailing text from excerpts
    * to a more pleasant …
    *
    * @since Pinboard 1.0
    */
    function pinboard_excerpt_more($more) {
    return ‘ …’;
    }
    endif;

    add_filter( ‘excerpt_more’, ‘pinboard_excerpt_more’ );

    I thought instead of just returning the ellipsis, it could also wrap the ellipsis with edit_post_link, but I forgot edit_post_link only works in TheLoop.

    It would also mean that non-administrators would see the edit link, but it would be cunningly disguised as an ellipsis. Unless they were logged in as an administrator, it wouldn’t work anyway.

    Jennifer

Viewing 4 posts - 1 through 4 (of 4 total)

Tagged: 

You must be logged in to reply to this topic.