Support » Theme: Surfarama » BOOKMARK THE permalink.

  • Resolved aduniq

    (@aduniq)


    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)
  • 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 –>.’, ‘surfarama’ );
    } else {
    $meta_text = __( ‘ ‘, ‘surfarama’ );
    }

    Where do you put this exactly? Thanks alot!

    Found it, thanks!!

    How did you remove it ? Can you tell me where that code goes to ?

    Thank you!
    I can’t tell you how helpful this was! Helped me in so many ways.

    Remove the code from ‘content-single.php’

    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

    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?

    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”

    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.

    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

    I tried the code above in the content-single.php but it did not work. I have multiple categories. Does that matter?

    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!

    <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”></span><span class=”byline”> <span class=”sep meta-on”%8$s> Date </span> <time class=”entry-date” datetime=”%3$s”>%4$s</time></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.’, ‘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(); ?> –>

    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)
  • The topic ‘BOOKMARK THE permalink.’ is closed to new replies.