• Resolved woodson02

    (@woodson02)


    Can someone please explain to me how to remove the permalink for a post title in twenty eleven:

    <h1 class="entry-title"><a rel="bookmark" title="Permalink to title" href="https://title/">Title</a></h1>

    I just want it to display the title with no link to the single post page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • TwentyEleven displays the title in LOTS of different places. You will need to search for lines containing code like this:

    <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>

    and change that to this:

    `
    <?php the_title(); ?>’

    Check all of the php files with names starting ‘content’.

    Thread Starter woodson02

    (@woodson02)

    Awesome, thank you very much. If I could ask one more question that is related… Is there a way to make the post page the same as the rest of the site…

    For example… I have modified the twenty eleven theme with a child theme to have a three column layout. My new posts display on the front page with sidebars to the left and right. If I click on that permalink it takes me to the individual post page and the layout changes. Is there a way to make the individual posts adhere to the same template so that it is still displaying 3 columns?

    Copy the original content-single.php to your child theme’s folder and modify it the way you did the other template.

    Thread Starter woodson02

    (@woodson02)

    Can I dedicate a css file specifically content-single.php?

    Possibly, but you could also modify the classes assigned in your child theme content-single.php and add the new classes to style.css.

    Thread Starter woodson02

    (@woodson02)

    Thanks for everything. Your really helped me out a lot.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove permalink from post title (twenty eleven)’ is closed to new replies.