Forums

How to remove "utilities" but NOT "modify" in posts using TwentyTen Theme? (3 posts)

  1. Rema999
    Member
    Posted 9 months ago #

    Hello there
    I'm a newbie, sorry if my question sounds silly.

    I managed to hide the "utilities" meta such as "comments disabled" etc. at the end of posts by simply adding th code below to the syle sheet.

    .entry-utility {display:none;}

    However I'd like to have the "Modify" link showing when I'm logged so that I can access to the backend easily.

    Is there a simple way to do this?
    Thanks!

  2. bjornhall
    Member
    Posted 9 months ago #

    Instead of hiding it. You can remove the parts you dont want to be shown for other. Remeber to take a backup of the code before editing!

    Like this:
    When loged in. Go to the "Appereance" section -> 'Editor'. In the Editor. open 'loop.php'
    find this part:
    <?php /* How to display all other posts. */ ?> (its a bit down)
    Now, below that, fint this:
    <div class="entry-utility">
    You can remove everything here, EXCEPT this part:
    <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> <--- Thats the edit link

    So. The new code would be something like this:

    <div class="entry-utility">
    				<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
    			</div><!-- .entry-utility -->
  3. Rema999
    Member
    Posted 9 months ago #

    Hey thanks!
    It worked perfectly.
    Now I even got how to read tye code a bit better and where to look for stuff.

    I hid even all the meta, but now I realize I may need to see the date on the posts (but no author and stuff): I'll see if I can find a way to do that.

    Thanks again!

Reply

You must log in to post.

About this Topic