Modify H1 Headline for SEO
I don't use the Blog Title option for my layout, which is typically given the H1 Tag. All my posts, and page titles are using H2, which isn't giving me the benefit of H1 for Google SEO.
Is there a way to have Atahualpa assign H1 Tags to post headlines and H2 tags to "linked" post headlines, like would show up in Excerpts? This would give me the H1 tag on individual post pages, but keep multiple H1's off on a category listing page of posts which Google doesn't like. The "Post/Page Stying" menu has options for CSS styling of each of these items, so I'm guessing some ID is being generated in Atahualpa for the different headline states. Thanks in advance for any help! |
Code updated April 9, 2009.
Code updated again April 11, 2009. See bottom of this post. I will change this in the next version. For now you would have to edit index.php PHP Code:
PHP Code:
Edit functions/bfa_header_config.php: PHP Code:
PHP Code:
HTML Code:
h1.blogtitle { HTML Code:
h1.blogtitle, PHP Code:
PHP Code:
Also in style.css HTML Code:
div.post-headline h2 { HTML Code:
div.post-headline h1, in header.php PHP Code:
PHP Code:
|
Thanks Flynn!
I'll plug this in tomorrow. |
Flynn, please a small clarification for non coders regarding these changes for those who DO use the blog title:
Do we make the first set of changes in index.php AND then the rest, or do we start with the bra_header_config.php and work down? Thanks. (Interesting that at least three of us came by within a few hours of each other regarding the same issue....) |
Yes, make all changes
The first part is for changing the post/page title, the rest is for the blog title |
Hi Flynn,
I put the code in today, checked with Firebug and it changes the headlines to H1, which is great. However, when I generate a list of posts in a category, the multiple excerpt headlines are also H1 (not H2). Google penalizes for more than one H1 on a page. Any thoughts? |
You're right, the code didn't work right, sorry for that. I updated it, please try again.
|
Quote:
|
Flynn,
This may be the wrong place for me to put this question. But.... I'm trying to reverse the colors of post headlines so that they are black by default and gray when hovered. Can't find where to make this change. There are no boxes for headlines in the post info items area. Where can I change the color of post headlines? Thanks, Kevin:confused: |
Quote:
Atahualpa Theme Options / Post Page Styling / Headline Box - Text and Atahualpa Theme Options / Post Page Styling / Headline Box - Hover plug the color in the Text box as: color: #000000; and color: #666666; (or whatever shade you want for hover). |
dg,
Can't believe I missed that. Was looking around for this all day. Thanks so much. Kevin |
Quote:
I am using Atahulpa Version 3.2 and I am not able to finde the code snippet to edit in functions/bfa_header_config.php Am I too blind to see it? Also the search function of my editor ws not successful. Flin want I am doing wrong? I also want to make my theme a little mre seo Thanks in advance |
This will be a theme option in 3.3.3 coming tomorrow. You may not have that code in your older version
|
All times are GMT -6. The time now is 01:34 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.