Remove page title and page location in non layers pages

Asked on May 19, 2016 in Customization.

Hello 🙂

This is my first post here, so please excuse me if I did something wrong 🙂

I want to remove the page title and the page location from every page:

I don’t want to use CSS because its processed by the browser and the title isn’t exactly removed, its “hidden”, its a bad practice to hide things…

I would prefer to remove the code which generates them.

Thanks in Advance.

Damon Harris Layers User

I just noticed that its in the “Features Request” section -.-‘

I wanted it into be the “How To” section, can a mod move it to the right section? 🙂

on May 20, 2016.

Nevermind, I edited it myself…

on May 20, 2016.
Reply
  • Possible Answers to Your Question:

  • 2 Answer(s)
    Answered on May 20, 2016.

    Hi Damon ,

    Its not a problem to use CSS,

    for thebread-crumbs you can use :

     .bread-crumbs {
     display: none;
     }
     

    For the Title :

    .title  {
     display: none;
     }
     

    You can i think delete the code from wordpress itself but i won’t recommend this
    as it is possible to break your install and other plugins that use these selectors.

    -Dieter

    Oh… I wanted to remove the code from the theme… But it still works I guess… I would welcome another answer with the code for breadcrumbs and title removed ^_^

    Anyways, thanks for the answer Dieter Jeanty! 😀

    on May 20, 2016.
    Reply
    Answered on May 20, 2016.

    Hi there,

    If you use display: none, the code is not output. If you uses visibility: hidden, it is rendered but just not shown.
    http://www.w3schools.com/css/css_display_visibility.asp

    If you want to remove it, you need a child theme that copies this page template in without the title function. That is actually a lot more work than just using CSS, which is the correct practice in this case.

    Ah, thanks for the explanation Vail but its still rendered by the browser… which I don’t like. But I understand that using CSS *is* the best option now.

    Thanks everyone! 😀

    on May 20, 2016.
    Reply