WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to remove permalink titles from pages (18 posts)

  1. gjindo
    Member
    Posted 3 years ago #

    How do you remove the permalink titles off of the pages. Seems a bit redundant..

    For example if you go to National Existence and it says "Our Mission" in the body of the site. Is there a way to remove that?

  2. gjindo
    Member
    Posted 3 years ago #

    Bump

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    page.php mopst likely has aline like this:

    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>

    you can just comment it out or delete it. I prefer commenting so you can easily bring it back

    <!-- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a> -->

    is commented out

  4. gjindo
    Member
    Posted 3 years ago #

    I dont have anything like that in my page.php file... I am using an Artisteer designed theme.. So I am not sure if that matters or not

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    it shouldn't. You've got some code in there somewhere that is bringing up your title....or else it references it from another file

    you could drop your page.php code here for us to look
    http://wordpress.pastebin.com

  6. gjindo
    Member
    Posted 3 years ago #

    Ok I just did that.. Do I leave it at that or is there something I need to do in order to show you the code here on the forum?

  7. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    oh sorry, you paste it there and save, and report the link back here

  8. gjindo
    Member
    Posted 3 years ago #

    page.php code

    There you go

  9. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    Jeez, that makes my head hurt....

    Anyway, this line here line 65 <?php echo $content; ?>

    displays the content. I have no idea how your theme is layed out tho. I'm assuming you either have a giant functions.php file or something. Anyway, you have another file that is controlling your layout, which defines $content

  10. gjindo
    Member
    Posted 3 years ago #

    yeah youre right.. the functions file is amazingly large. what could I look for in there?

  11. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    well, is it well commented? If not it could be pretty hard..... you are looking for place where $content is defined for page display

    again, you could drop that into a pastebin if you can't find anything.

    If it's the right place, it'll have a standard WP loop, and maybe some code that looks like what I posted above for the title.

  12. gjindo
    Member
    Posted 3 years ago #

    Function file

    Could it be line 123 or perhaps 241? I am not sure

  13. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    the actual output is controlled at line 324. I believe I'm in way over my head here.....

    although an easy fix would be to add

    body.page h2.art-postheader {
              display: none;
              }

    to style.css if you want the title gone on all pages. the css can be more specific if need be.....
    display:none can be subbed with visibility:hidden if you notice your layout looks bad. display:none takes it out of the flow of your site, visibility: hidden hides it, but it still takes up the space in your layout if that makes sense

    I think we were going about this the VERY hard way.... ;)

  14. gjindo
    Member
    Posted 3 years ago #

    wow yeah that makes perfect sense.. and yeah youre right... hard way for sure, but let me try that out and see what happens.. ill let u in a few minutes

  15. gjindo
    Member
    Posted 3 years ago #

    and you are a genius sir... Thank you so much I added the code to style.css and it now is gone without messing up the flow of the site.. I appreciate it a lot man

  16. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    Sure thing! Glad we got it

    (Note to self..... keep it simple!)

  17. gjindo
    Member
    Posted 3 years ago #

    yeah absolutely. thanks again

  18. Reason
    Member
    Posted 3 years ago #

    I attempted to insert body.page h2.art-postheader {
    display: none;
    }

    into style.css but it had no effect on removing the permalink title off the pages. Is there a particular spot I am suppose to insert the code?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.