Hide title in blog body when displayed in blog list in WordPress

Hide title in blog body when displayed in blog list in WordPress

In order to have a complete document in each blog, blog title is saved in blog body as well.

Blog appears in blog list with title in blog body.

screen

Blog appears in blog list without title (hidden) in blog body.

screen

To hide the blog title in blog list, which is in <h1> or # form, using following code.

.wpbstarter-blog-list .entry-content h1 {
  display: none;
}

Another way to hide it, this can have more control.

.wpbstarter-blog-list .entry-content h1 {
  font-size: 0;
  width: 1px;
  height: 1px;
  display: inline-block;
  overflow: hidden;
  position: absolute!important;
  border: 0!important;
  padding: 0!important;
  margin: 0!important;
  clip: rect(1px,1px,1px,1px);
}

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


The reCAPTCHA verification period has expired. Please reload the page.