• have site up and on line.. problem is .. posted in section shows “edit” and if you click it .. it bringss you to the edit page of my site.. this is not good.. how do I hide it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • that link only shows for logged in admins
    log out and test

    Thread Starter avideoguy

    (@avideoguy)

    You were right! Thank you.. is there a way to get rid of the “Posted on September 1, 2010 by admin” and the ” Posted in Uncategorized | Comments Off” stuff off the page completely?

    Yes – edit the relevant template file in your theme.

    Thread Starter avideoguy

    (@avideoguy)

    Hi thank you for response.. how do I get to the template file? I am using “Twenty Ten 1.1 by the WordPress team” I go to managing themes and the site is there, but no way to get to the file that I can see.. you help is greatly appreciated.. really. thank you Ed

    Look in Appearance/Editor. You’ll need to edit loop.php and remove references to <?php twentyten_posted_on(); ?>. I think there are two separate occurances in that file. You’ll also need to remove <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> (3 occurrences).

    You should also be aware that your changes will be over-written if/when you upgrade the theme or when you upgrade WordPress.

    is that in single posts?

    edit single.php;
    find:

    <div class="entry-meta">
    						<?php twentyten_posted_on(); ?>
    					</div><!-- .entry-meta -->

    and remove it.

    then find:

    <div class="entry-utility">
    						<?php twentyten_posted_in(); ?>
    						<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    					</div><!-- .entry-utility -->

    remove this also (this part also contains the ‘edit’ link).
    if you want to keep the ‘edit’ link, just delete
    <?php twentyten_posted_in(); ?>
    from the above.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘functioning "edit button" shows on web site’ is closed to new replies.