- Hide Page Titles From Displaying On Specific Pages & Posts Using CSS Code
- Hide Titles Using CSS
- Hiding Post Titles
- Hiding Multiple Specific Post Titles
- Reader Interactions
- Leave a Reply Cancel reply
- Primary Sidebar
- Hide Page Titles From Displaying On Specific Pages & Posts Using CSS Code
- Hide Titles Using CSS
- Hiding Post Titles
- Hiding Multiple Specific Post Titles
- Reader Interactions
- Leave a Reply Cancel reply
- Primary Sidebar
- Css css hide long text title
- How do i avoid this title from overflowing?
- How to Handle Text Overflow (With a CSS Ellipsis)
- Truncated a text with ellipsis that be next to a title
- Overflow: hidden and floating
Hide Page Titles From Displaying On Specific Pages & Posts Using CSS Code
The easiest way to hide the title of your page or post is to simply remove it after publishing.
You could then add the title at the top of the page/posts content area and use the Heading (H1) tags.
Your theme should also offer a field for your title which will still display in the search results as well as your source code.
Otherwise, install the Yoast’s SEO plugin and add your title to the General SEO Title field.
Another option is to add CSS code to your child theme’s style.css file.
Hide Titles Using CSS
This is an example of what the code looks like. Change the page I.D to match the page you wish to hide the title.
Add more unique page i.d’s to hide more page titles
.page-id-007 .entry-title .page-id-001 .entry-title
First you’ll need to find your:
- Page Title Class: Generally this is .entry-title for both pages and posts
- Page or Post I.D: You can find this in the source code by right clicking your mouse on the page you wish to hide.
Here’s a short tip written earlier about how to find your page i.d.
Highlight the title you want to hide and click Inspect with Firebug.
In the left window that pops up you’ll see both your:
Hiding Post Titles
Edit this code and paste it into your child theme’s style.css file to hide a specific post title:
Hiding Multiple Specific Post Titles
Simply add each unique post i.d and title class tom the code:
#post-007 .entry-title, .page-id-001 .entry-title
Reader Interactions
Leave a Reply Cancel reply
You must be logged in to post a comment.
Primary Sidebar
Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…
Hide Page Titles From Displaying On Specific Pages & Posts Using CSS Code
The easiest way to hide the title of your page or post is to simply remove it after publishing.
You could then add the title at the top of the page/posts content area and use the Heading (H1) tags.
Your theme should also offer a field for your title which will still display in the search results as well as your source code.
Otherwise, install the Yoast’s SEO plugin and add your title to the General SEO Title field.
Another option is to add CSS code to your child theme’s style.css file.
Hide Titles Using CSS
This is an example of what the code looks like. Change the page I.D to match the page you wish to hide the title.
Add more unique page i.d’s to hide more page titles
.page-id-007 .entry-title .page-id-001 .entry-title
First you’ll need to find your:
- Page Title Class: Generally this is .entry-title for both pages and posts
- Page or Post I.D: You can find this in the source code by right clicking your mouse on the page you wish to hide.
Here’s a short tip written earlier about how to find your page i.d.
Highlight the title you want to hide and click Inspect with Firebug.
In the left window that pops up you’ll see both your:
Hiding Post Titles
Edit this code and paste it into your child theme’s style.css file to hide a specific post title:
Hiding Multiple Specific Post Titles
Simply add each unique post i.d and title class tom the code:
#post-007 .entry-title, .page-id-001 .entry-title
Reader Interactions
Leave a Reply Cancel reply
You must be logged in to post a comment.
Primary Sidebar
Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…
Css css hide long text title
Text titles will share a baseline but not a top line. It is necessary to position the title element absolutely to get the alignment of the title text in line with the other two text lines (assuming that is required).
How do i avoid this title from overflowing?
Just playing around by creating a free wordpress theme but i’m stuck as the title of the post seems to overflow when its very long.
Please how can i fix this.
Here is the image showing the error.
The red border is the one that push down the container below it.
CSS
* < -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; >.posts-not-found < border: 2px solid red; padding: 20px; left: 65px; right: 65px; >.layerit < width: 100%; height: 100%; padding-top: 150px; margin: 0 auto; background: rgba(0, 0, 0, .3); padding-top: 150px; position: relative; left: 0; bottom: 0; right: 0; text-align: center; transition: background-color .9s ease; border: 1px solid white; >.navbar a < padding-top: 30px; >.navbar-brand < font-size: 25px; >.home-title < color: white; >#title-text <> .home-author < color: white; padding-top: 20px; padding-bottom: 20px; >.no-margin
HTML
Your gray area is created by top padding and the space the title and author text take up. When you have more than one line of text for either the title or author, the gray area will expand.
- Cut the title short with ellipsis, with CSS text-overflow: ellipsis; or WordPress wp_trim_words .
- Allow the text to move up and take up more of the gray space at the top of the gray area. Text titles will share a baseline but not a top line.
Here is an example of option #2:
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'); .layerit < min-height: 300px; background: rgba(0, 0, 0, .3); border: 1px solid white; >.intro < position: absolute; left: 0; bottom: 0; right: 0; text-align: center; transition: background-color .9s ease; >.home-title < color: white; >.home-author < color: white; padding-top: 20px; padding-bottom: 20px; >.no-margin
Some really long title. Some really long title. Some really long title. Some really long title.