Warning: Declaration of WPDI_Plugin_Installer_Skin::feedback($string) should be compatible with WP_Upgrader_Skin::feedback($string, ...$args) in /home/users/1/eebee/web/~puramo-zukan.com/wp-content/plugins/classic-editor-addon/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php on line 526

Warning: Cannot modify header information - headers already sent by (output started at /home/users/1/eebee/web/~puramo-zukan.com/wp-content/plugins/classic-editor-addon/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php:526) in /home/users/1/eebee/web/~puramo-zukan.com/wp-includes/feed-rss2.php on line 8
投稿記事 – Taqqの私的プラモ図鑑とかその他諸々 http://www.puramo-zukan.com プラモとその関連と関連しない諸々のブログサイトです。 Thu, 19 Apr 2018 05:31:01 +0000 ja hourly 1 https://wordpress.org/?v=5.8.9 WPの記事(ソース)内にコメントを入れると勝手にラップされる件 http://www.puramo-zukan.com/2018/04/19/wp%e3%81%ae%e8%a8%98%e4%ba%8b%ef%bc%88%e3%82%bd%e3%83%bc%e3%82%b9%ef%bc%89%e5%86%85%e3%81%ab%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%81%a8%e5%8b%9d%e6%89%8b%e3%81%ab/ http://www.puramo-zukan.com/2018/04/19/wp%e3%81%ae%e8%a8%98%e4%ba%8b%ef%bc%88%e3%82%bd%e3%83%bc%e3%82%b9%ef%bc%89%e5%86%85%e3%81%ab%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%81%a8%e5%8b%9d%e6%89%8b%e3%81%ab/#respond Thu, 19 Apr 2018 05:31:01 +0000 http://www.puramo-zukan.com/?p=35 "WPの記事(ソース)内にコメントを入れると勝手にラップされる件" の続きを読む

]]>
なんか~投稿エリアのhtmlっていうかぁ、「テキスト」モードで文章をよく打つのですがぁ、htmlのコメント<!–~–>を記述するとぉ、勝手に<p>とかでラッピングされちゃうんですよぉ・・・。っで、記事を表示するとコメントを入れた部分に妙な空間が開くのです。が、私的には定型文の区切り見つけやすくするのによく入れる系なヒトなのでぇ、これは困った。

回避方法が今ひとつわからないので、ラップする要素(大抵div)のdata-~属性にコメントを入れることにした。

構文的に適不適は解らないが、まぁいいか・・・。

]]>
http://www.puramo-zukan.com/2018/04/19/wp%e3%81%ae%e8%a8%98%e4%ba%8b%ef%bc%88%e3%82%bd%e3%83%bc%e3%82%b9%ef%bc%89%e5%86%85%e3%81%ab%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%81%a8%e5%8b%9d%e6%89%8b%e3%81%ab/feed/ 0