Title: Link Posts
Last modified: August 31, 2016

---

# Link Posts

 *  Resolved [dchapman21](https://wordpress.org/support/users/dchapman21/)
 * (@dchapman21)
 * [10 years ago](https://wordpress.org/support/topic/link-posts-1/)
 * So I’ve been trying to get the link posts to keep the linked title when you go
   to the permalink. For example, my /Film post has a title linked here: [http://www.hifinoise.com](http://www.hifinoise.com)
   but when you go to the permalink ([https://hifinoise.com/2016/05/10/film-ranks-mcu-heroes/](https://hifinoise.com/2016/05/10/film-ranks-mcu-heroes/))
   the title is no longer linked.
 * Is there any way to change this so that it links in both views?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Sarah Blackstock](https://wordpress.org/support/users/sarahblackstock/)
 * (@sarahblackstock)
 * [10 years ago](https://wordpress.org/support/topic/link-posts-1/#post-7367623)
 * Hi there!
 * To change the Link format’s post title into the same link on the single (link)
   post page, that will require some changes to the theme’s code. However, you shouldn’t
   do that directly in the theme, since your changes would be lost anytime the theme
   is updated.
 * First, set up a child theme. If you’re not familiar with how to do that, these
   resources are helpful:
    [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
   [http://vimeo.com/39023468](http://vimeo.com/39023468) [https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/](https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/)
 * Once you have your Child Theme (with style.css & functions.php files), add a 
   file called content-single.php.
 * Next copy the contents from Penscratch’s content-single.php file and paste into
   your Child Theme’s file of the same name.
 * In your new (child) content-single.php file, find everything in between <header
   > </header> on lines 8-16:
 *     ```
       <header class="entry-header">
       		<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
   
       		<div class="entry-meta">
       			<?php penscratch_post_format(); ?>
       			<?php penscratch_posted_on(); ?>
       			<?php edit_post_link( __( 'Edit', 'penscratch' ), '<span class="sep"> ~ </span><span class="edit-link">', '</span>' ); ?>
       		</div><!-- .entry-meta -->
       </header><!-- .entry-header -->
       ```
   
 * Remove and replace with this:
 *     ```
       <header class="entry-header">
       	<?php if ( 'link' == get_post_format() ) : ?>
       		<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( penscratch_get_link_url() ) ), '</a></h1>' ); ?>
       	<?php else : ?>
       		<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
       	<?php endif; ?>
       			<div class="entry-meta">
       			<?php penscratch_post_format(); ?>
       			<?php penscratch_posted_on(); ?>
       			<?php edit_post_link( __( 'Edit', 'penscratch' ), '<span class="sep"> ~ </span><span class="edit-link">', '</span>' ); ?>
       		</div><!-- .entry-meta -->
       </header><!-- .entry-header -->
       ```
   
 * Save/upload the Child Theme to your site and activate, then you’ll see the single(
   Link format) post page now has a link as the title (the same as on the main blog
   page).
 * Let me know how it goes! 🙂
 *  Thread Starter [dchapman21](https://wordpress.org/support/users/dchapman21/)
 * (@dchapman21)
 * [10 years ago](https://wordpress.org/support/topic/link-posts-1/#post-7367632)
 * That worked! Thanks so much. So if I make any changes to the style, I should 
   do that in the child theme and not just the “Edit CSS” in my WordPress dashboard?
   I had changed the link colors to red so I want to be sure I don’t lost that either
   when I update.
 *  [Sarah Blackstock](https://wordpress.org/support/users/sarahblackstock/)
 * (@sarahblackstock)
 * [10 years ago](https://wordpress.org/support/topic/link-posts-1/#post-7367639)
 * Awesome! You’re welcome! 🙂
 * Yep, if you’re going to edit style.css, use the child theme one. If you have 
   a plugin (like Jetpack) giving you a CSS editor, you should be able to use that
   like normal without a problem.
 *  Thread Starter [dchapman21](https://wordpress.org/support/users/dchapman21/)
 * (@dchapman21)
 * [10 years ago](https://wordpress.org/support/topic/link-posts-1/#post-7367642)
 * I do have Jetpack so I’ll go ahead and use that editor. Thanks again!
 *  Thread Starter [dchapman21](https://wordpress.org/support/users/dchapman21/)
 * (@dchapman21)
 * [10 years ago](https://wordpress.org/support/topic/link-posts-1/#post-7367650)
 * Alright, all set with CSS now too. Appreciate the help today.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Link Posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/penscratch/1.0.4/screenshot.png)
 * Penscratch
 * [Support Threads](https://wordpress.org/support/theme/penscratch/)
 * [Active Topics](https://wordpress.org/support/theme/penscratch/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/penscratch/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/penscratch/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [dchapman21](https://wordpress.org/support/users/dchapman21/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/link-posts-1/#post-7367650)
 * Status: resolved