WordPress.org

Ready to get started?Download WordPress

Forums

Ryu
[resolved] Remove Link from Quotes Post (3 posts)

  1. jordanhuxley
    Member
    Posted 1 year ago #

    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.

  2. paulwpxp
    Font hero
    Posted 1 year ago #

    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

  3. jordanhuxley
    Member
    Posted 1 year ago #

    Thank you! Much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.