Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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