go41

Re: Incorporating H1 text in Arthemia :: Reply by Joern

von Joern am 17. Jun. 2010 | Keine Kommentare

I would use h1 for the page title – in header.php.
In one of my themes this looks like this:

Code:

<div id="logo" class="left">
         <h1><a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>"><?php bloginfo('name'); ?> - <?php bloginfo('description'); ?></a></h1>
         <div id="tagline"><?php bloginfo('description'); ?></div>
      </div>

as you can see compared to arthemia I removed the image here, put a h1 tag around the link and in the link you see your sites name and description.

That’s not all about it, the visitor should see your logo, so I load the logo from css as background and make the text invisible by pushing it ‚out of sight‘

style.css has the following entry logo left

#logo.left a {

background:url("images/logo.gif") repeat scroll 0 0 #FFFFFF;

color:#FFFFFF;

display:block;

font-size:2%;

height:39px;

margin:0;

text-indent:-1000px;

width:350px;

}
OOPS, reading your question again I think you want to use the h1 tag in a text you write in the editor.
This you can style in style.css. By default it takes the value given under h1, in arthemia that is:
h1 {

font:3.5em Arial;

font-weight:bold;

letter-spacing:-0.08em;

}
to get another looking in your text entry you should not modify this but make a new entry in style.css just valid for you posts. These are in a div class "entry"

add in style.css for example
.entry h1 {

font:2em Arial;

font-weight:bold;

}
and the h1 in a post should look different
same is valid for h2, h3, h4 etc
did I get you now?
In general, you said you looked into ‚SEO‘:

h1 should be a title and only once on a page-view

that’s why I suggest it for your sites title.

h1 you could also use for the title of your post in single.php (there is now <h2 class="title"> )
h2 can be multiple times on a page, as title for the posts in index.php for example.
Take a look at your site or others and select in the browser to view without styling.

Now the browser takes a default style for h1 h2 etc and you see text size (and importance) as google might see it.
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 4 weitere Ergebnisse dieses Threads:

Incorporating H1 text in Arthemia

17. Jun. 2010 (von: drwhom)

Hi Joern, Been doing a bit of SEO work on www.iamstaggered.com and I was wondering if you could help me work out how to incorporate H1 text on pages without it looking really dumb!Currently if I insert H1 text anywhere…

Re: Incorporating H1 text in Arthemia :: Reply by drwhom

22. Jun. 2010 (von: drwhom)

I've not been ignoring your excellent advice, I've just been trying to work out how on earth to get this done! I've made the change to the single.php but the edit on the style.css doesn't work - any idea what…

Re: Incorporating H1 text in Arthemia :: Reply by master

22. Jun. 2010 (von: master)

try to add in style.css:#content h1.title {border-bottom:1px solid #DDDDDD;border-top:3px solid #DDDDDD;font:bold 2.2em Georgia;letter-spacing:-0.05em;padding:5px 0;}font is the important thing, border, spacing and padding you do not need______________... Weiterlesen →

Re: Incorporating H1 text in Arthemia :: Reply by drwhom

23. Jun. 2010 (von: drwhom)

Ah-ha! Sorted - but weirdly it didn't work until I formatted it the way that the h2 info was formatted:Code:#content h1.title {   font:2.2em Georgia;   font-weight:bold;   letter-spacing:-0.05em;   border-bottom:... Weiterlesen →

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: