Removing a particular WP Page Title - Need some assistance!

15 replies
  • WEB DESIGN
  • |
Hello Warriors,

I tried to search for plugins that could allow me to remove or hide a particular wordpress page title but unfortunately, I had no luck yet.

Do you know of some plugins that could do that?

Good for those themes like headway that we will just check a check box to hide a page title.

I tried adding this to the stylesheet:

#post-23 h2 {display:none;}

wherein the "23" is the specific Page's ID, still no luck.

Your help will be very much appreciated.

Thanks,
Louie Tugas
#assistance #page #removing #title
  • Profile picture of the author Fadiz
    Try this
    <? php if (is_page('pageslug' )) { ?>
    // title removed
    <?php } else { ?>
    <h1><?php the_title(); ?></h1>
    <?php } ?>
    {{ DiscussionBoard.errors[6164773].message }}
    • Profile picture of the author magiclouie
      Thanks for the input. Actually, I am familiar with this plugin especially if you want to remove a certain menu (page) on the navigation bar. I am talking about the page title to be hidden or removed.

      Originally Posted by Fadiz View Post

      Try this
      <? php if (is_page('pageslug' )) { ?>
      // title removed
      <?php } else { ?>
      <h1><?php the_title(); ?></h1>
      <?php } ?>
      Thanks for the suggestion, however I am referring to a particular title page only and not all.

      Please keep them coming.

      Thanks,
      Louie Tugas
      {{ DiscussionBoard.errors[6165056].message }}
      • Profile picture of the author Fadiz
        The only way I can think of is creating another page template for example page-no-title.php copy and past the code from page.php and just remove the title and when you add new page you can choose with or without title from the page attributes.

        Not sure how good you are with PHP... but the above should be easy to do
        Originally Posted by magiclouie View Post

        Thanks for the suggestion, however I am referring to a particular title page only and not all.

        Please keep them coming.

        Thanks,
        Louie Tugas
        {{ DiscussionBoard.errors[6165184].message }}
        • Profile picture of the author magiclouie
          Originally Posted by Fadiz View Post

          The only way I can think of is creating another page template for example page-no-title.php copy and past the code from page.php and just remove the title and when you add new page you can choose with or without title from the page attributes.

          Not sure how good you are with PHP... but the above should be easy to do
          Thanks Fadiz, I will try this one. I can trace and understand php codes.
          {{ DiscussionBoard.errors[6165634].message }}
  • Profile picture of the author Istvan Horvath
    I am still not clear what exactly are you trying to do...
    - removing the title of the Page (as opposed to post) on the top of the content?
    - removing the title of a post from somewhere (your code in the OP refers to posts, not Page; your thread title talks about Page...)
    - removing the title tag from the top bar of the browser?

    BTW, for the first option above Fadiz's code was perfect: it removes the title ONLY for the Page whose slug is put into the code!
    Signature

    {{ DiscussionBoard.errors[6166603].message }}
    • Profile picture of the author magiclouie
      Originally Posted by Istvan Horvath View Post

      I am still not clear what exactly are you trying to do...
      - removing the title of the Page (as opposed to post) on the top of the content?
      - removing the title of a post from somewhere (your code in the OP refers to posts, not Page; your thread title talks about Page...)
      - removing the title tag from the top bar of the browser?

      BTW, for the first option above Fadiz's code was perfect: it removes the title ONLY for the Page whose slug is put into the code!
      Hello Sir Istvan,

      Thanks for the inputs.

      This is exactly what I want done: removing the title of the Page (as opposed to post) on the top of the content!

      I am still testing everything I can.

      Thanks,
      Louie Tugas
      {{ DiscussionBoard.errors[6167260].message }}
      • Profile picture of the author Fadiz
        Hey if you still didn't figure it out give me admin access for 5 mins and i'll do it for you, most likely it will take me 2 mins. or send me your page.php file use pastebin.com
        Originally Posted by magiclouie View Post

        Hello Sir Istvan,

        Thanks for the inputs.

        This is exactly what I want done: removing the title of the Page (as opposed to post) on the top of the content!

        I am still testing everything I can.

        Thanks,
        Louie Tugas
        {{ DiscussionBoard.errors[6167288].message }}
        • Profile picture of the author magiclouie
          Originally Posted by Fadiz View Post

          Hey if you still didn't figure it out give me admin access for 5 mins and i'll do it for you, most likely it will take me 2 mins. or send me your page.php file use pastebin.com
          I can't thank you enough for your help, Fadiz. You simply rock!

          More power to you and to your business.

          Cheers,
          Louie Tugas
          {{ DiscussionBoard.errors[6167606].message }}
          • Profile picture of the author Fadiz
            Anytime my friend and thanks for your kind words

            Originally Posted by magiclouie View Post

            I can't thank you enough for your help, Fadiz. You simply rock!

            More power to you and to your business.

            Cheers,
            Louie Tugas
            {{ DiscussionBoard.errors[6167650].message }}
  • Profile picture of the author bowolabs
    agree Fadiz idea is the best solutions, btw can i see the site, maybe i can help
    {{ DiscussionBoard.errors[6166808].message }}
    • Profile picture of the author magiclouie
      Originally Posted by bowolabs View Post

      agree Fadiz idea is the best solutions, btw can i see the site, maybe i can help
      This is the page, | Texas Auto or Car Insurance , however, you can't see anymore the Page Title because I removed it inside the wp admin dashboard which is not good for SEO.

      There are actually 10 video pages that I need to remove the page title above the contents.

      If I will remove the 10 page titles inside the admin dashboard, I would have 10 "no title" pages. The other video pages are still empty at this point in time, and only the huge page titles are displayed which I would like to be hidden/removed.

      I am using the eVid theme of the Elegant themes and I have already customized the site a bit.

      Thanks,
      Louie Tugas
      {{ DiscussionBoard.errors[6167302].message }}
  • Profile picture of the author Istvan Horvath
    What Fadiz didn't tell you

    Edit your page.php template (normally, that's the one used to display your Pages).

    Find <?php the_title(); ?>

    REPLACE it with Fadiz's code and put the slug of the Page instead of pageslug;
    i.e. if your Page is title "About Us" the slug is 'about-us' <-- you can see it when editing your Page, above the content, as permalink, highlighted with yellow...

    <? php if (is_page('about-us' )) { ?>
    // title removed
    <?php } else { ?>
    <h1><?php the_title(); ?></h1>
    <?php } ?>


    P.S. If the title of that Page doesn't need to appear anywhere (like in menus, Pages list etc.) - then you could just simply delete whatever is in the Title field; WP will still keep the slug and permalink! If the Page title has to appear in a menu or something like that - this won't work.
    Signature

    {{ DiscussionBoard.errors[6167348].message }}
    • Profile picture of the author magiclouie
      Originally Posted by Istvan Horvath View Post

      What Fadiz didn't tell you

      Edit your page.php template (normally, that's the one used to display your Pages).

      Find <?php the_title(); ?>

      REPLACE it with Fadiz's code and put the slug of the Page instead of pageslug;
      i.e. if your Page is title "About Us" the slug is 'about-us' <-- you can see it when editing your Page, above the content, as permalink, highlighted with yellow...

      <? php if (is_page('about-us' )) { ?>
      // title removed
      <?php } else { ?>
      <h1><?php the_title(); ?></h1>
      <?php } ?>


      P.S. If the title of that Page doesn't need to appear anywhere (like in menus, Pages list etc.) - then you could just simply delete whatever is in the Title field; WP will still keep the slug and permalink! If the Page title has to appear in a menu or something like that - this won't work.
      Thank you so much for your detailed inputs Sir Istvan. Finally, we have sorted it out.

      You have helped me several times already with my wordpress issues.

      Cheers,
      Louie Tugas
      {{ DiscussionBoard.errors[6167615].message }}
    • Profile picture of the author Fadiz
      You got it right Istvan however I just deleted <?php the_title(); ?> in a new template and that pretty much solved the problem.

      Hey Istvan let's go find more challenging problems to solve you in? lol

      Originally Posted by Istvan Horvath View Post

      What Fadiz didn't tell you

      Edit your page.php template (normally, that's the one used to display your Pages).

      Find <?php the_title(); ?>

      REPLACE it with Fadiz's code and put the slug of the Page instead of pageslug;
      i.e. if your Page is title "About Us" the slug is 'about-us' <-- you can see it when editing your Page, above the content, as permalink, highlighted with yellow...

      <? php if (is_page('about-us' )) { ?>
      // title removed
      <?php } else { ?>
      <h1><?php the_title(); ?></h1>
      <?php } ?>


      P.S. If the title of that Page doesn't need to appear anywhere (like in menus, Pages list etc.) - then you could just simply delete whatever is in the Title field; WP will still keep the slug and permalink! If the Page title has to appear in a menu or something like that - this won't work.
      {{ DiscussionBoard.errors[6167636].message }}

Trending Topics