Page Title Repeated
-
Can you tell me why the page title is being repeated on this page?
Mod
There is probably an error in your
template-twocolumnsleft.phptemplate 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.
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
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.
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-titlewithh1works but I’d rather indicate the title specifically.Mod
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:
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/
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.
