Support » Theme: Ryu » Remove Link from Quotes Post

  • Resolved jordanhuxley

    (@jordanhuxley)


    I would like to remove the link from the quotes post.

    I have identified the link as part of this section of code:

    <?php
    				if ( ! is_single() ) :
    					the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'ryu' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark">', '</a></h1>' );
    				else :
    					the_title( '<h1 class="entry-title">', '</h1>' );
    				endif;
    			?>

    However, I’m not sure how to remove it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Make the one with link the same as one without.

    Like this

    if ( ! is_single() ) :
    	the_title( '<h1 class="entry-title">', '</h1>' );
    else :
    	the_title( '<h1 class="entry-title">', '</h1>' );
    endif;

    or make the whole if else section become just this

    the_title( '<h1 class="entry-title">', '</h1>' );

    Be sure that’s done in the right template which is content-quote.php, and done using child theme (just copy over that template and make change in it).
    http://codex.wordpress.org/Child_Themes

    Thread Starter jordanhuxley

    (@jordanhuxley)

    Thank you! Much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Link from Quotes Post’ is closed to new replies.