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 hidden with display: none; Creating would be good as a property (you need to edit css instead of HTML).

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.

  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";  

If you do not have any way to identify h1 , you can not manipulate it.

Editing 2: New versions of CSS will allow you on the h1 page:

  h1: first-type Of {display: none; }  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -