Before you ask please READ THIS

how to deactivate the link on the date in a blog post

edited November 2014 in Hypershot Posts: 17
hi air, forum

how can i deactivate the link on the date in a blog post? i just dont need that function.

thanks for help, honcho

Comments

  • AirAir
    Posts: 10,970
    Hello:-)

    But you want to disable date or turn off link option? Cause it only leads to post, so it is not harmful and it is recommended blog behaviour.

    With regards.
  • Posts: 17
    actually just turn off link option. i know its not a big problem, just a clean up, reduce the clutter of possible links that all lead to the same :)
  • AirAir
    Posts: 10,970
    Go to hypershot\advance\utilities.php line ~48, and change:
    
    if(!function_exists('a13_posted_on')){
        function a13_posted_on( $date_format = '' ) {
            return sprintf( '<a href="%1$s" rel="bookmark" class="date">%2$s</a>',
                esc_url(get_permalink()), /* link to day archives - get_day_link(get_the_time( 'Y' ), get_the_time( 'm' ), get_the_time( 'd' )), (http://justintadlock.com/archives/2010/08/06/linking-post-published-dates-to-their-archives)*/
                ( strlen( $date_format ) ? get_the_date( $date_format ) : get_the_date() )
            );
        }
    }
    to
    
    if(!function_exists('a13_posted_on')){
        function a13_posted_on( $date_format = '' ) {
            return sprintf( '<span rel="bookmark" class="date">%1$s</span>',
                ( strlen( $date_format ) ? get_the_date( $date_format ) : get_the_date() )
            );
        }
    }
    With regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!