Skip to content

Instantly share code, notes, and snippets.

@mypacecreator
Last active July 1, 2016 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mypacecreator/d27e7964fd3c536d075f9e4d1aa24fcc to your computer and use it in GitHub Desktop.
Save mypacecreator/d27e7964fd3c536d075f9e4d1aa24fcc to your computer and use it in GitHub Desktop.
WordPressで印刷用画面を作る手順の途中(ブログ用)
<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="robots" content="noindex">
<title>印刷用ページのベース(例)</title>
<link rel='stylesheet' id='print-css' href='<?php echo esc_url( get_template_directory_uri() ); ?>/print.css' type='text/css' media='all' />
</head>
<body>
<!-- ここに印刷用のレイアウトHTMLを書く -->
<p class="print-btn"><a href="javascript:void(0)" onclick="window.print();return false;">このページを印刷</a></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment