ตัวอย่าง code
โค้ด: เลือกทั้งหมด
<div class="entry-byline">
<span class="entry-author" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person">
<a href="http://a.com/author/nueng/" title="Posts by nueng" rel="author" class="url fn n" itemprop="url"><span itemprop="name">nueng</span></a>
</span>
<time class="entry-published updated" datetime="2015-04-18T19:47:21+00:00" title="Saturday, April 18, 2015, 7:47 pm">April 18, 2015</time>
<span class="comments-link"></span>
<a class="post-edit-link" href="http://a.com/wp-admin/post.php?post=1670&action=edit">Edit This</a>
</div>
span.entry-author { display : none; }
time.entry-pulished { display : none; }
แต่ใช้แบบด้านล่างมันทำงาน
span.entry-author { visibility: hidden; }
time.entry-pulished { visibility: hidden; }
ปัญหา คือ ไม่อยากแก้ theme wordpress นะครับ ก็เลย rewrite css เข้าไปเอา ที่อยากใช้ display : none ก็ดีกว่า visibility: hidden; นะครับ มันไม่เว้น space
ขอบคุณครับ
div.entry-byline { display : none; }
อันนี้ทำงานนะครับ แต่ผมอยากโชว์ Edit This ด้วยก็เลยไม่ได้เซ็ทครอบใหญ่จากค่า <div>