html - How to hide <h1> Title? -
I believe this is the code, I want to hide on the front page, whether I hide a CSS Can I use code? I can only remove the "title" from the page, and it gets rid of it, but then the link has gone from the menu menu.
& lt; H1 class = 'Page-Title Entry-Title' & gt; Forum & lt; / H1>
Use display
of CSS:
& lt; H1 style = 'display: none;' Class = 'page-title entry-title' & gt; Forum & lt; / H1>
A class By the way, even though we are happy to welcome all new people, there are some rules about the questions of stack sites. One of these is that will have to demonstrate the least effort in trying to solve their problems on their own. A simple Google search could have solved this for you. Edit: If you can not edit HTML / CSS code, then inject JavaScript. If you do not have any way to identify Editing 2: New versions of CSS will allow you on the hidden
with display: none; Creating would be good as a property (you need to edit css instead of HTML).
var all = document.getElementsByTagName ("h1"); // Hide all H1s: for (var i = 0, max = all.length; i & lt; max; i ++) all [i] .style.display = "none"; / * * First hide h1: Change the index to manipulate * 1, 2, ... * / All [0] .style.display = "none";
h1
, you can not manipulate it. h1
page:
h1: first-type Of {display: none; }
Comments
Post a Comment