Page Title Repeated

  • CattleDriver

    #4922

    Can you tell me why the page title is being repeated on this page?

    http://www.christianneighbors.org/board-page/

    Mod

    Kenneth John Odle

    #29873

    There is probably an error in your template-twocolumnsleft.php template in your child theme.

    If you can’t figure it out, post the code to pastebin.com and then post a link here and we can take a look.

    CattleDriver

    #29874

    You are absolutely right. A while ago I attempted to modify that file as I’m using that template for the home page and wanted to stop the page title from displaying on the home page. Just making the typical change to the CSS to remove the home page title didn’t work because the home page isn’t using the default template. I never got that to work anyway, and obviously screwed something up in the process, so I just deleted the template-twocolumnsleft.php in my child theme and will go from there.

    Thank you!

    Mod

    Kenneth John Odle

    #29875
    Quote:
    Just making the typical change to the CSS to remove the home page title didn’t work because the home page isn’t using the default template.

    It should work no matter which template that page is using, provided you call the proper post ID in the CSS.

    CattleDriver

    #29876

    Bear with me. What do I add to style.css to suppress the page title on that page?

    I’ve tried this to no avail.

    .page-id-2 .page-title {
    display: none;
    }

    Replacing .page-title withh1 works but I’d rather indicate the title specifically.

    Mod

    Kenneth John Odle

    #29877

    You have to find the correct page ID. Looking at your page source (“View page source” from your browser), we find this in the <body> tag:

    0dzWT.png

    so the correct code now becomes:

    .page-id-296 .post-title {
    display:none;
    }

    This page will show you how to find the ID for other things:

    http://blog.kjodle.net/2012/04/14/target-graphene-action-hook-widgets-by-their-unique-id/

    CattleDriver

    #29878

    Indeed that works. I was using .page-title instead of .post-title.

    And thank you for the informative link also.

Viewing 7 posts - 1 through 7 (of 7 total)

  • You must be logged in to reply to this topic.