{"id":3533,"date":"2020-03-23T14:52:31","date_gmt":"2020-03-23T09:52:31","guid":{"rendered":"https:\/\/webplover.com\/hosting\/?p=3533"},"modified":"2022-02-12T13:31:27","modified_gmt":"2022-02-12T08:31:27","slug":"hiding-title-from-post-or-page","status":"publish","type":"post","link":"https:\/\/webplover.com\/hosting\/hiding-title-from-post-or-page\/","title":{"rendered":"How to Hide Title from a Post or Page in WordPress"},"content":{"rendered":"\n<p>Do you want to hide the title from your post or page? This is a complete guide for you.<br>In this post, I will share three ways to hide titles from posts and pages. As these kinds of titles are sometimes unwanted. Like you don&#8217;t want to show that it&#8217;s homepage, while it\u2019s already apparent and there is no need to put a title at the top of the homepage showing that it is a homepage. I will show you three ways to get rid of these titles.<\/p>\n\n\n\n\n\n<p>Let&#8217;s get started\u2026<\/p>\n\n\n\n<h2 class=\"h2-note wp-block-heading\" id=\"wpr-hide-specific-title-using-plugin\">The first method: By Using Plugin.<\/h2>\n\n\n\n<p>In the first method we will tell you, how can you hide the title of specific post or page using plugin. so&nbsp;just go to your WordPress dashboard <strong>\u00bb<\/strong> click on <strong>Plugins \u00bb Add New<\/strong> and search for <a href=\"https:\/\/wordpress.org\/plugins\/title-remover\/\" target=\"_blank\" rel=\"noopener noreferrer\">Title Remover<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2020\/03\/title-remover-plugin.jpg\" alt=\"title-remover-plugin\" class=\"wp-image-3645\" width=\"607\" height=\"241\" title=\"title-remover-plugin\"\/><\/figure>\n\n\n\n<p>The first result will be from <a href=\"https:\/\/wpgurus.net\/\">WP Gurus<\/a>, with over hundred thousand active installations. Just <a href=\"https:\/\/webplover.com\/hosting\/blog\/install-wordpress-plugin\/\">install<\/a> and activate this plugin. And now go to any page or post which you want to remove the title of. At the right of the post edit screen, you will see different meta-boxes including a new box named hide title. Check this hide title meta-box and update the post.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2020\/03\/title-remover-meta-box.jpg\" alt=\"title-remover-meta-box\" class=\"wp-image-3644\" title=\"title-remover-meta-box\"\/><\/figure>\n\n\n\n<p>The title will be successfully removed.<\/p>\n\n\n\n<h2 class=\"h2-note wp-block-heading\" id=\"the-second-method-by-writing-a-code-line\">The second method: By Writing a code-line.<\/h2>\n\n\n\n<p>In this method we will tell you, how can you hide the title of specific post or page by write a code in style.css and functions.php files.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wpr-hide-specific-post-title\">Hide specific post title<\/h3>\n\n\n\n<p>Firstly, we have to check the ID of that particular post or page which we want to target. So for checking ID, we will select that particular post\/page, and come to the post\/page edit-screen and you will see the ID of your post in the URL bar.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2020\/03\/wordpress-find-post-id.jpg\" alt=\"wordpress-find-post-id\" class=\"wp-image-3646\" width=\"551\" height=\"52\" title=\"wordpress-find-post-id\"\/><\/figure>\n\n\n\n<p>Copy this ID and go to the <b>appearance<\/b> tab and click <b>theme editor. <\/b>You may get an attention notice, just proceed to the theme editor and don\u2019t worry.<br>Navigate to your <b>functions.php<\/b> file and copy the below code and paste it in your editor.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function wpr_hidetitle_class($classes) {\n    if ( is_single() ) : \n        $classes&#91;] = 'hidetitle';\n        return $classes;\n    endif; \n    return $classes;\n}\nadd_filter('post_class', 'wpr_hidetitle_class');<\/code><\/pre>\n\n\n\n<p>In the second line of the code, write your post\u2019s ID inside the <b>is_single()<\/b> parentheses and update the file.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2020\/03\/added-code-to-functions-php_file.jpg\" alt=\"added-code-to-functions-php_file\" class=\"wp-image-3642\" width=\"563\" height=\"280\" title=\"added-code-to-functions-php_file\"\/><\/figure>\n\n\n\n<p>(This code will add a class in the post&#8217;s container.)<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2020\/03\/wp-post-container_code.jpg\" alt=\"wp-post-container_code\" class=\"wp-image-3647\" width=\"583\" height=\"184\" title=\"wp-post-container_code\"\/><\/figure>\n\n\n\n<p>Now we have to check the class of our title. For checking the class of a post title, we will come to the front-end, right-click on the title of the post, and click inspect element.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2020\/03\/wp-post-title-css_class.jpg\" alt=\"wp-post-title-css_class\" class=\"wp-image-3648\" width=\"591\" height=\"148\" title=\"wp-post-title-css_class\"\/><\/figure>\n\n\n\n<p>We will copy this class and head back to the editor.<br>Navigate to <b>style.css<\/b> file, write the below code in it, and update file:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>You can also add this css to&nbsp;<strong>Appearance \u00bb Customise \u00bb Additional Css<\/strong> or to any plugin that allows you to add custom css like <a href=\"https:\/\/wordpress.org\/plugins\/wp-add-custom-css\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP Add Custom CSS<\/a> plugin, instead of <strong>style.css<\/strong><\/p><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>.hidetitle .entry-title {\n  display: none;\n}<\/code><\/pre>\n\n\n\n<p>The title will be removed and hidden.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wpr-hide-specific-page-title\">Hide specific page title<\/h3>\n\n\n\n<p>In case of removing the title from a page, go to <b>functions.php<\/b> file and now instead of <b>is_single() <\/b>write <b>is_page()<\/b> to remove the title of the single page and insert the ID of the page you want to target, inside the parentheses, and update the file.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2020\/03\/added-code-to-functions_php-file.jpg\" alt=\"added-code-to-functions_php-file\" class=\"wp-image-3643\" width=\"538\" height=\"205\" title=\"added-code-to-functions_php-file\"\/><\/figure>\n\n\n\n<h2 class=\"h2-note wp-block-heading\" id=\"wpr-hide-titles-bulk\">The third method: Bulk Removing of Titles.<\/h2>\n\n\n\n<p>In previous methods, we discussed how to remove titles from individual posts or pages. But if you want to hide titles from all posts and pages at once, the plugin method will remain the same. We just have to check the hide title button from meta-boxes and update posts ????.<\/p>\n\n\n\n<p>In the coding method, we will change a line from our code.<br>So we will head over to our <b>functions.php<\/b> file and just leave the parentheses of&nbsp;<strong>is_page()<\/strong> blank and add <code>|| is_single()<\/code> after it like this:<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2020\/03\/hide_bulk_titles_functions-php1.jpg\" alt=\"hide_bulk_titles_functions-php1\" class=\"wp-image-3674\" width=\"527\" height=\"319\" title=\"hide_bulk_titles_functions-php1\"\/><\/figure>\n\n\n\n<p>And now we will update the file.<br>All the titles of posts and pages will be hidden successfully.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wpr-hide-posts-titles-bulk\">Hide Titles of All Posts<\/h3>\n\n\n\n<p>We will use the following code for hiding the titles of all posts:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function wpr_hidetitle_class($classes) {\n    if ( is_single() ) : \n        $classes&#91;] = 'hidetitle';\n        return $classes;\n    endif; \n    return $classes;\n}\nadd_filter('post_class', 'wpr_hidetitle_class');<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wpr-hide-pages-titles-bulk\">Hide Titles of All Pages<\/h3>\n\n\n\n<p>And this code will be used for hiding the titles of all pages:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function wpr_hidetitle_class($classes) {\n    if ( is_page() ) : \n        $classes&#91;] = 'hidetitle';\n        return $classes;\n    endif; \n    return $classes;\n}\nadd_filter('post_class', 'wpr_hidetitle_class');<\/code><\/pre>\n\n\n\n<p>Still confused! Check out this video for detailed information about the issue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"wpr-video-tutorial\">Video Tutorial<\/h2>\n\n\n\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/ITbrEMpNd9E\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"here-are-a-few-tutorials-for-you-to-read-next\">Here are a few tutorials for you to read next:<\/h4>\n\n\n\n<ul class=\"related-posts-li wp-block-list\"><li><a href=\"https:\/\/webplover.com\/hosting\/blog\/display-wordpress-posts-in-grid-layout\/\">How to Display Your WordPress Posts in Grid Layout<\/a><\/li><li><a href=\"https:\/\/webplover.com\/hosting\/blog\/find-post-page-category-user-id-wordpress\/\">How to Find Post, Page, Category, or User ID in WordPress<\/a><\/li><li><a href=\"https:\/\/webplover.com\/hosting\/blog\/exclude-specific-category-posts-from-wordpress-homepage\/\">How to Exclude Specific Category Posts From Your WordPress Home Page<\/a><\/li><li><a href=\"https:\/\/webplover.com\/hosting\/blog\/wordpress-functions-php\/\">What is functions.php in WordPress<br><\/a><\/li><li><a href=\"https:\/\/webplover.com\/hosting\/blog\/wordpress-child-theme\/\">What is WordPress Child Theme and How to Create it<\/a><\/li><\/ul>\n\n\n\n<div class=\"g-ytsubscribe\" data-channelid=\"UCArLhGLL14dgeiIKwlu4jYA\" data-layout=\"full\" data-count=\"hidden\">&nbsp;<\/div>\n\n\n\n<p><strong>If you find this tutorial helpful, then please Subscribe to our <\/strong><a href=\"https:\/\/m.youtube.com\/channel\/UCArLhGLL14dgeiIKwlu4jYA\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>YouTube Channel<\/strong><\/a><strong> for video tutorials, and share this article on social media.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you want to hide the title from your post or page? This is a complete guide for you.In this post, I will share three ways to hide titles from posts and pages. As these kinds of titles are sometimes unwanted. Like you don&#8217;t want to show that it&#8217;s homepage, while it\u2019s already apparent and&#8230;<\/p>\n","protected":false},"author":220,"featured_media":4300,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[228],"tags":[],"class_list":["post-3533","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"acf":[],"_links":{"self":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/posts\/3533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/users\/220"}],"replies":[{"embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/comments?post=3533"}],"version-history":[{"count":0,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/posts\/3533\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/media\/4300"}],"wp:attachment":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/media?parent=3533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/categories?post=3533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/tags?post=3533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}