WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to remove "Bookmark the permalink" from every post (26 posts)

  1. youngr
    Member
    Posted 2 years ago #

    Hi, I need help removing "bookmark the permalink" from all posts as I think it is unnatractive. Ive tried looking in some files but when I try remove anything it shows an error.

    Can anyone direct me in the right direction?

    I'm using twentyeleven theme.

  2. youngr
    Member
    Posted 2 years ago #

    Any help? Desperate here!

    [No bumping, thank you.]

  3. deepbevel
    Member
    Posted 2 years ago #

    Which theme? with twenty ten it's built in to:

    <?php twentyten_posted_in(); ?>

    you can remove it and replace it with :

    <?php the_category();?>

    if you still want to show the category without the bookmark link.

  4. youngr
    Member
    Posted 2 years ago #

    Thanks for the reply. Sorry its for twenty eleven, any help?

    What editor file would that be in?

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress 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.

  6. deepbevel
    Member
    Posted 2 years ago #

    Single.php.
    Don't confuse "posted_in" with "posted _on" which is at the top, "posted_in" is at the bottom.
    Before you edit, copy all the code and save it in a text file as backup.

  7. deepbevel
    Member
    Posted 2 years ago #

    better to do as esmi advises. In addition, without a child theme, you'll have to remember what you edited and do it again when twentyten/eleven is updated.

  8. youngr
    Member
    Posted 2 years ago #

    Thank you for your help guys. I guess I've got myself in a pickle. I have edited some files when I first started and now do not remember what I did edit.

    Regarding the child theme, I edit the stylesheet.css. Is that correct?

    Thank you

  9. deepbevel
    Member
    Posted 2 years ago #

    Yes, you need to save what you change, and save the whole file, not just what you edited. It's too easy to mess up that way. After you update your theme, the changes you made will be over written, so you have to replace those files.
    As for your pickle, just replace the entire template file with the default code, start over.

  10. youngr
    Member
    Posted 2 years ago #

    So my blog will loose a lot of its features? I dont even remember some of the things I changed.

    Can I just copy all the files into the child theme?

    Also I tried to remove the link for "bookmark the permalink" and it caused an error for my blog. Any other way?

    Sorry for the late reply

  11. deepbevel
    Member
    Posted 2 years ago #

    I'm only suggesting that if your project is beyond your ability to repair, you may want to start over. If you don't remember what you changed it's unlikely I can help much, I'd have to know all about what you're trying to do.

    If you post your page code in http://pastebin.com/ maybe I can help salvage what you have and fix the error. I'll get to it as soon as I can:)

  12. youngr
    Member
    Posted 2 years ago #

    Thank you very much for your support, I'm really inexperienced.

    I don't have an error, its just now I fear I will loose all my edits when twentyeleven updates.

    I will post my single-post content so maybe you can see where I need to make the change?

    Heres the link for pastebin http://pastebin.com/ia2xaTin

  13. deepbevel
    Member
    Posted 2 years ago #

    If you want to remove bookmark the permalink from the bottom of single posts in twenty eleven:
    Find content-single.php. Copy and save all of it's code then replace with this

    It should remove "bookmark the permalink" from the bottom of all single posts.

    The theme is more complex than what I'm used to, it's got 3 files which appear to handle single posts, but I only found the bookmark code in content-single.php.

    if you look at the default code you'll see it and know what I removed. I'm not sure what else you may have changed in single.php, and I don't know if it will effect my change, I doubt it.
    Good luck:)

  14. youngr
    Member
    Posted 2 years ago #

    Thanks for dedicating time to my problem. It caused the link to be broken for all single posts. I think something's wrong :(

    P.s. do you know any way to get a border for my sidebar? also edit the width of the sidebar so that my text fills out the space?

    I know im asking a lot and please dont feel obliged to answer.

    Thanks again deepbevel

  15. deepbevel
    Member
    Posted 2 years ago #

    I'm sorry, but if I can't do something as simple as remove bookmark the permalink, then twenty eleven is beyond me. (3 different files for post single?) I wouldn't even think of trying to dig into it's css. Perhaps someone who knows the theme better than I..

  16. esmi
    Forum Moderator
    Posted 2 years ago #

    Start by uploading a fresh copy of the Twenty Eleven theme to wp-content/themes using FTP. You can then download a pre-made Twenty Eleven child theme from here.

  17. youngr
    Member
    Posted 2 years ago #

    Thanks for your help guys.

    I just have to keep the "bookmark this permalink" lol

  18. professorpeanuts
    Member
    Posted 2 years ago #

    Hi youngr and others. First post here.
    Actually I registered because i finally saw a chance to help someone out after having consulted this forum multiple times for myself.

    The solution to your problem youngr, should be this. Deepbevel almost had it right... he deleted more of the code then he should have deleted. also, commenting is better I'd say. This way you can still 'revive' that piece of code.

    I hope This thread can be marked as 'resolved' now. Does it work? It works with me.

    // i have taken out the bookmark this permalink text by commenting out the bookmarking part on line 37. Line 35 and 39 commented out so server doesn't load stuff needlessly //

    if ( '' != $tag_list ) {
    				$utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. <!-- Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. -->', 'twentyeleven' );
    			} elseif ( '' != $categories_list ) {
    				$utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. <!-- Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. -->', 'twentyeleven' );
    			} else {
    				$utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. <!-- Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.-->', 'twentyeleven' );
    			}

    http://pastebin.com/z1X0efZ8 That is a link to pastebin with the same code. Compare your code to mine to see the difference.

  19. deepbevel
    Member
    Posted 2 years ago #

    yeah, no closing brackets on mine.. opps. probably should have left the twentyeleven too. Nice to have a solution, and welcome!

  20. youngr
    Member
    Posted 2 years ago #

    Mate, your an absolute legend!!

    Thank you all (deepbevel, esmi and professorpeanuts) for your help! Really appreciate it.

    Professor thank you again! Got my face like this: :D

    P.S. What would the code be to hide the author?? Sorry :) lol

  21. deepbevel
    Member
    Posted 2 years ago #

    Just delete everything. that's my stock answer now. (haha)

    but actually, if I were you I might try applying the same "commenting out" method to the author code:

    <!-- This entry was posted by <a href="%6$s">%5$s</a>. -->
  22. youngr
    Member
    Posted 2 years ago #

    Lol, I'm content with how it is. Thanks for all your help guys x

  23. professorpeanuts
    Member
    Posted 2 years ago #

    Glad I could help someone! Good luck in life.

  24. divineanddecadent
    Member
    Posted 1 year ago #

    I'm having the same problem in Origami, blogrolls hundreds of them in the sidebar :(

  25. deepbevel
    Member
    Posted 1 year ago #

    That sounds like a differnt problem.
    Do you mean widgets in the sidebar? or you literally have hundreds of blogroll links?

  26. esmi
    Forum Moderator
    Posted 1 year ago #

    @divineanddecadent: As per the Forum Welcome, please post your own topic. Your problem - despite any similarity in symptoms - is likely to be completely different.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.