Forum Replies Created

Viewing 1 replies (of 1 total)
  • The only way I’ve found to modify the single post page is to change a the file template-tags.php
    It creates the navigation of the previous and the latest posts. So, if you insert the code of your social icons block above the navigation, you’ll have them just after your post.
    You are to insert your code after this line:

    // Don't print empty markup if there's nowhere to navigate.
    	$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
    	$next     = get_adjacent_post( false, '', false );
    
    	if ( ! $next && ! $previous ) {
    		return;
    	}
    
    	?>

    And before that

    <nav class="navigation post-navigation" role="navigation">
    		<h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1>
    		<div class="nav-links">

    Changes in the file content.php doesn’t make sence, cause the file also participates in the creating of the other pages, like the main one.

Viewing 1 replies (of 1 total)