• Resolved gjindo

    (@gjindo)


    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?

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter gjindo

    (@gjindo)

    Bump

    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

    Thread Starter gjindo

    (@gjindo)

    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

    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

    Thread Starter gjindo

    (@gjindo)

    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?

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

    Thread Starter gjindo

    (@gjindo)

    page.php code

    There you go

    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

    Thread Starter gjindo

    (@gjindo)

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

    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.

    Thread Starter gjindo

    (@gjindo)

    Function file

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

    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…. πŸ˜‰

    Thread Starter gjindo

    (@gjindo)

    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

    Thread Starter gjindo

    (@gjindo)

    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

    Sure thing! Glad we got it

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘How to remove permalink titles from pages’ is closed to new replies.