Title: BOOKMARK THE permalink.
Last modified: August 21, 2016

---

# BOOKMARK THE permalink.

 *  Resolved [aduniq](https://wordpress.org/support/users/aduniq/)
 * (@aduniq)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/bookmark-the-permalink/)
 * Hi Guys
 * Would anybody be willing to tell me how to remove the ‘BOOKMARK THE permalink.’
   from posts pages?
 * I have found some solutions for twenty eleven theme to do with ‘content-single.
   php’ but cannot get it right on surfarama without messing up structure of the
   page.
 * Your help is much appreciated.
 * Best
    Adam

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/bookmark-the-permalink/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bookmark-the-permalink/page/2/?output_format=md)

 *  Thread Starter [aduniq](https://wordpress.org/support/users/aduniq/)
 * (@aduniq)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130506)
 * Perhaps, it is going to help somebody. I have managed to get it removed. Below
   is the extract from the code that worked for me:
 * if ( ! surfarama_categorized_blog() ) {
    // This blog only has 1 category so 
   we just need to worry about tags in the meta text if ( ” != $tag_list ) { $meta_text
   = __( ‘Tagged %2$s. <–! Bookmark the [permalink](https://wordpress.org/support/topic/bookmark-the-permalink/%3$s?output_format=md)–
   >.’, ‘surfarama’ ); } else { $meta_text = __( ‘ ‘, ‘surfarama’ ); }
 *  [eileengano](https://wordpress.org/support/users/eileengano/)
 * (@eileengano)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130842)
 * Where do you put this exactly? Thanks alot!
 *  [eileengano](https://wordpress.org/support/users/eileengano/)
 * (@eileengano)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130843)
 * Found it, thanks!!
 *  [esimplu](https://wordpress.org/support/users/esimplu/)
 * (@esimplu)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130848)
 * How did you remove it ? Can you tell me where that code goes to ?
 *  [gcme](https://wordpress.org/support/users/gcme/)
 * (@gcme)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130852)
 * Thank you!
    I can’t tell you how helpful this was! Helped me in so many ways.
 *  [gcme](https://wordpress.org/support/users/gcme/)
 * (@gcme)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130853)
 * Remove the code from ‘content-single.php’
 *  [wpickering](https://wordpress.org/support/users/wpickering/)
 * (@wpickering)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130865)
 * Hi
    Ive tried removing the code but end up with errors on the page.
 * Can someone post the complete code for edited content-single.php? I will paste
   that into my site
 * Thanks
 * [http://www.hikeandbikemarbella.com](http://www.hikeandbikemarbella.com)
 *  [wafwaf](https://wordpress.org/support/users/wafwaf/)
 * (@wafwaf)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130868)
 * Can someone please explain why would anyone want to remove it? If someone likes
   your post it helps them bookmark it. Isn’t this a good thing?
 *  [eileengano](https://wordpress.org/support/users/eileengano/)
 * (@eileengano)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130869)
 * More detailed instructions:
 * From the dashboard,
    on the left hand side, Click “Appearance” and then “Editor”
 * The title on the screen should now show
    “Edit Themes: Surfarama: Stylesheet (
   style.css)”
 * On the far Right there is a list starting with “404 Template”
 * Click on “content-single.php”
 * Search for “<footer class=”entry-meta”>
 * Edit the code so that it now looks like this: (bold is the new code)
 * —————–
 * <footer class=”entry-meta”>
    <?php /* translators: used between list items, there
   is a space after the comma */ $category_list = get_the_category_list( __( ‘, ‘,‘
   surfarama’ ) );
 *  /* translators: used between list items, there is a space after the comma */
   
   $tag_list = get_the_tag_list( ”, ‘, ‘ );
 *  **if ( ! surfarama_categorized_blog() ) {
    // This blog only has 1 category 
   so we just need to worry about tags in the meta text if ( ” != $tag_list ) { 
   $meta_text = __( ‘Tagged %2$s. <–! Bookmark the permalink –>.’, ‘surfarama’ );}
   else {$meta_text = __( ‘ ‘, ‘surfarama’ );}
 *  } else {
    // But this blog….
 * ——————-
 * Then click “update file”
 *  [eileengano](https://wordpress.org/support/users/eileengano/)
 * (@eileengano)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130870)
 * Re wafwaf: Can someone please explain why would anyone want to remove it? If 
   someone likes your post it helps them bookmark it. Isn’t this a good thing?
 * IMO It’s ugly and just doesn’t work with the flow of my site. I use my website
   as a portfolio instead of a blog and that “bookmark the permalink… ” is an ugly
   and unnecessary distraction that serves little purpose to the majority of my 
   visitors.
 *  [wpickering](https://wordpress.org/support/users/wpickering/)
 * (@wpickering)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130871)
 * Thanks eileengano
    I tried replacing the code but “BOOKMARK THE permalink” is
   still visible on my posts!! I cant see why it doesnt work
 * And yes I agree it doesnt suit the website I am trying to create either [http://www.hikeandbikemarebella.com](http://www.hikeandbikemarebella.com)
 *  [licomic](https://wordpress.org/support/users/licomic/)
 * (@licomic)
 * [12 years ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130872)
 * I tried the code above in the content-single.php but it did not work. I have 
   multiple categories. Does that matter?
 *  [eileengano](https://wordpress.org/support/users/eileengano/)
 * (@eileengano)
 * [12 years ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130873)
 * Please see my following post with the entire code for content-single.php
 * I edited for multiple categories and it works for me with both single and multiple
   categories.
 * Hope it helps!
 *  [eileengano](https://wordpress.org/support/users/eileengano/)
 * (@eileengano)
 * [12 years ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130874)
 * <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <header class=”
   entry-header”> <h1 class=”entry-title”><?php the_title(); ?></h1>
 * <div class=”entry-meta clearfix”>
    <?php //first get the current category ID 
   $categories = get_the_category($post->ID); $cat_id = $categories[0]->cat_ID; //
   then i get the data from the database $cat_data = get_option(“taxonomy_$cat_id”);//
   and then i just display my category image if it exists if (isset($cat_data[‘cat_color’])){
   $cat_color_write = ‘ style=”background-color: ‘. $cat_data[‘cat_color’] .'”‘;}
   else { $cat_color_write = ”; } printf( __( ‘<span class=”sep meta-by”%8$s>Author
   </span> <span class=”author vcard”>[%7$s](https://wordpress.org/support/topic/bookmark-the-permalink/%5$s?output_format=md)
   </span><span class=”byline”> <span class=”sep meta-on”%8$s> Date </span> [<time class=”entry-date” datetime=”%3$s”>%4$s</time>](https://wordpress.org/support/topic/bookmark-the-permalink/%1$s?output_format=md)
   </span>’, ‘surfarama’ ), esc_url( get_permalink() ), esc_attr( get_the_time()),
   esc_attr( get_the_date( ‘c’ ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url(
   get_the_author_meta( ‘ID’ ) ) ), esc_attr( sprintf( __( ‘View all posts by %s’,‘
   surfarama’ ), get_the_author() ) ), esc_html( get_the_author() ), $cat_color_write);?
   > <?php if ( comments_open() || ( ‘0’ != get_comments_number() && ! comments_open())):?
   > <div class=”comment-top”><span class=”meta-com”<?php echo $cat_color_write;?
   >><?php _e(‘Comments:’, ‘surfarama’); ?></span> <?php comments_popup_link( __(‘
   Leave a comment’, ‘surfarama’ ), __( ‘1 Comment’, ‘surfarama’ ), __( ‘% Comments’,‘
   surfarama’ ) ); ?></div> <?php endif; ?> </div><!– .entry-meta –> </header><!–.
   entry-header –>
 * <div class=”entry-content post_content”>
    <?php the_content(); ?> <?php wp_link_pages(
   array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’, ‘surfarama’ ), ‘
   after’ => ‘</div>’ ) ); ?> </div><!– .entry-content –>
 * <footer class=”entry-meta”>
    <?php /* translators: used between list items, there
   is a space after the comma */ $category_list = get_the_category_list( __( ‘, ‘,‘
   surfarama’ ) );
 * /* translators: used between list items, there is a space after the comma */
   
   $tag_list = get_the_tag_list( ”, ‘, ‘ );
 * if ( ! surfarama_categorized_blog() ) {
    // This blog only has 1 category so 
   we just need to worry about tags in the meta text if ( ” != $tag_list ) { $meta_text
   = __( ‘Tagged %2$s. <–! Bookmark the permalink –>.’, ‘surfarama’ );} else {$meta_text
   = __( ‘ ‘, ‘surfarama’ );}
 * } else {
    // But this blog has loads of categories so we should probably display
   them here if ( ” != $tag_list ) { $meta_text = __( ‘<span class=”cat-meta-color”%
   5$s>Posted in %1$s</span><div class=”colorbar”%5$s></div> Tagged %2$s. Bookmark
   the [permalink](https://wordpress.org/support/topic/bookmark-the-permalink/%3$s?output_format=md).’,‘
   surfarama’ ); }
 * } // end check for categories on this blog
 * printf(
    $meta_text, $category_list, $tag_list, get_permalink(), the_title_attribute(‘
   echo=0’ ), $cat_color_write ); ?>
 * <?php edit_post_link( __( ‘Edit’, ‘surfarama’ ), ‘<span class=”edit-link”>’, ‘
   </span>’ ); ?>
    </footer><!– .entry-meta –>
 * </article><!– #post-<?php the_ID(); ?> –>
 *  [licomic](https://wordpress.org/support/users/licomic/)
 * (@licomic)
 * [12 years ago](https://wordpress.org/support/topic/bookmark-the-permalink/#post-4130875)
 * Thanks eileengano. I cut and pasted what you posted into a new content-single.
   php but it did not work for me.
 * Not sure what I’m missing. I’ll keep poking around.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/bookmark-the-permalink/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bookmark-the-permalink/page/2/?output_format=md)

The topic ‘BOOKMARK THE permalink.’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/surfarama/2.1/screenshot.png)
 * Surfarama
 * [Support Threads](https://wordpress.org/support/theme/surfarama/)
 * [Active Topics](https://wordpress.org/support/theme/surfarama/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/surfarama/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/surfarama/reviews/)

 * 18 replies
 * 7 participants
 * Last reply from: [wpickering](https://wordpress.org/support/users/wpickering/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/bookmark-the-permalink/page/2/#post-4130878)
 * Status: resolved