Site icon Amelt.net

Twenty Fourteen:Hide the eye-catching image

web_TwentyFourteenのアイキャッチ画像を非表示にするカスタマイズ

This post is also available in: 日本語 (Japanese)

With the theme of 2014 edition of the wordpress "Twenty Fourteen", eye-catching image is interrupted by an single article page.


web_TwentyFourteenのアイキャッチ画像を非表示にするカスタマイズ

This customization is only comment out the relevant part.

Then, eye-catching image only be hidden on an single article and static page, it will be displayed normally in the case of eye-catching image is called by plug-in and articles list.

Customize to hide the eye-catching image of Twenty Fourteen (wordpress)

It is useful to search for the code in the "Ctrl + F".

Hide the eye-catching image in a single article

Twenty Fourteen theme: content.php

Before change

<?php  twentyfourteen_post_thumbnail(); ?>

After changing

<?php // twentyfourteen_post_thumbnail(); ?>

Hide the eye-catching image in static page

Twenty Fourteenテーマ: content-page.php
Before change

<?php
		// Page thumbnail and title.
		twentyfourteen_post_thumbnail();
		the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' );
	?>

After changing

<?php
		// Page thumbnail and title.
		// twentyfourteen_post_thumbnail();
		the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' );
	?>