How to Delete Information on a WordPress Blog Using CSS
If you want your WordPress blog to contain certain information but do not want it visible to the public, consider masking this content using cascading style sheets. With CSS, you have the ability to create a style rule that works with your blog's existing code to hide any particular text you desire. Understand how to access the templates that manage your blog and apply the CSS that deletes the information you prefer.
Instructions
-
-
1
Log in to your WordPress account. Click the "Editor" link under the "Appearance" tab on the left side of the Dashboard to gain access to your blog's CSS documents.
-
2
Click the "Stylesheet (style.css)" link under the "Styles" label and scroll to the bottom of the text box that appears. Enter the following CSS:
.delete { display: none; }
This code creates a style rule that hides any information it is applied to.
-
-
3
Click the "Update File" button and then click a template of your choice, such as Header or Footer, that contains the information you want to hide. The code for this document appears on the page.
-
4
Find the content you want to mask and then position your cursor in the opening tag, such as <div>, that precedes it. Type "class=" and then follow this with "delete" in quotation marks to make the code look like this example:
<div class="delete">This is the information you are deleting.</div>
-
5
Click the "Update File" button and then view your Web page to see the removed content.
-
1