Different background in each entry

Surely you'll ever use it, and it's very nice thanks to the plugin Custom background extended a jewel for lovers of customization.

Once installed and active adds a new box goal to the WordPress post editor from which you can choose a custom header for the post you are going to publish, choosing your location and layout.

The only requirement is that your theme supports custom backgrounds for what, I remember you, you have to add this line to the file functions.php of it:

How to add header images to TwentyTen

register_default_headers ( array (

' berries ' = > array (

' ] url ' = > ' % s / images / headers / berries . jpg '

' thumbnail_url ' = > ' % s ] / images / headers / berries thumbnail . jpg '

/ * translators: header image description * /

' description ' = > __ ( ' Berries ' ' twentyten ' )

)

' che rryblossom ' = > array (

' url ' = > ' % [19659014] s / images / headers / cherryblossoms . jpg '

' thumbnail_url ' = > ' % s / images / headers / cherryblossoms [19659007] – thumbnail . jpg '

/ * translators: header image description * /

' description ' = > __ ( ' Cherry Blossoms ' ' twentyten ' )

)

' concave ' = > array [1965] 9002] (

' url ' = > '% s / images / headers / concave . jpg '

' thumbnail_url ' = > ' % s / images / headers / concave thumbnail . jpg '

/ * translators: header image description * /

' description ' = > __ ( ' Concave ' ' twentyten ' )

)

' fern ' = > array (

' url ' = > '' % [19659014] / images / headers / fern . jpg '

' thumbnail_url ' = > ' % s / images / headers / fern ] – thumbnail . jpg '

/ * translators: header image description * /

' description '[19659006] = > __ ( ' Fern ' ' twentyten ' [19659002])

)

' forestfloor ' = > array (

' url ' = > ' % s / images / headers / forestfloor ].[1 9659014] jpg '

' thumbnail_url ' = > ' % s / images / headers / forestfloor thumbnail . jpg '

/ * translators : header image description * /

' description ' = > __ ( ' Forest Floor ' ' twentyten ' )

)

' inkwell '[19659006] = > array (

' url ' = > '% s /images/headers/inkwell.jpg',

'thumbnail_url ' = > ' % s / images / headers / inkwell thumbnail . jpg '

/ * translators: header image description * /

' description ' ] = > __ ( ' Inkwell ' ' twentyten ' [19659002])

)

' path ' = > array (

' url ' = > ' % s / images / headers / path jpg '

' thumbnail_url ' = > ' % s / [19659014] images / [1 9659014] headers / path thumbnail . jpg '

/ * translators: header image description * /

' description ' = > __ '[ ' Path ' twentyten ' )

)

' sunset ' = > array (

' url ' = > '% s / images / [19659014] headers / sunset . jpg '

' thumbnail_url ' = > '% s / images / headers / sunset thumbnail . jpg '

/ * translators: header image description * /

' description ' = > __ ] ( ' Sunset ' ' twentyten ' )

)

] waterfall ' = > array (

' url ' = > ' % s / images / headers / waterfall . jpg '

] ' thumbnail_url ' = > '% s / images / headers / waterfall thumbnail . jpg '

/ * translators: header image description * /

' description ' = > __ ( ' Waterfall ' ' twentyten ' )

)

' mountain ' = > array (

' url ' = > '% s / images / headers ] / mountain . jpg '

' thumbnail_url ' = > ' % s / images / headers / mountain thumbnail . jpg '

/ * translators: header image description * /

' description ' = > __ ([196] 59013] ' Mountain ' ' twentyten ' )

)

) ] ) ;

Different header by categories

This is safe one of the most gimmicky tricks that you can include in your site, through which you can define a different header depending on the category of the post you are viewing, very useful if you have a section Special that you want to highlight in particular. Let's not say to center the positioning in any specific category.

The process is very simple. Let's say you have a category called ' tutorials ' and have created a file called header-tutoriales.php from your file header.php but customized (for example the image), because you would only have to replace the usual code of with the following:

You can, as you can imagine, do the same with other footers or sidebars:

To show footer -mifooter.php would you put this on any page of your choice:

To show sidebar-misidebar.php you would put this on any page of your choice:

SEO in Header Tags • WordPress Help

Today we will discuss an issue of positioning of SEO in your blog WordPress that, although obvious, sometimes is not understood very well.

It has to do with the HTML tags of your theme the way to structure them and as the searchers read their blog and readers. However, this will affect the bots more than your readers.

The Structure of the Titles

The most important content of your blog is the one that is framed between the tags [19659006]and the next one in importance will be the one among the tags

. H1 is an HTML tag meaning "Header 1" (from English 'Header 1') or "Primary Header". Similarly, H2 stands for "Secondary Header", and so on for H3, H4, to H6.

This is why search engines look at your Headers to determine, in a quick way, What is the content of your blog? And if you do not assimilate it, you may damage the SEO of your site.

Use H1 only once

This is a maxim: uses the H1 tag ONLY on any page. There is not something called "Primary Headers", only "Primary Header". Having several H1 on the same page will negatively affect the SEO of your blog .

This is especially important if you have your title or logo (with the method of replace your title with an image ]) with H1 tags. Come on, if the title of your blog already has H1 and the title of your post also has H1 what is the main header?

The content of TITLE and H1 must match

Although it is not really necessary, it has if you have structured your TITLE with the right keywords for your blog, put double emphasis on the same thing that you already have in TITLE, also in H1 it will serve to indicate to the search engines that your content is important.

H2 is for the secondary Headers

And if you can have several secondary headers. In fact in this same article you have several H2. It is also interesting that your H2 headers offer keywords but do not abuse the "delivery" of keywords must be in scale, without too much repetition.

Sidebars and the H2 tag

I do not know if you've noticed, but WordPress uses H2 by default for the titles of the Widgets . This is totally counterproductive to the semantics of your blog, to have a sensible structure, as well as to confuse search engines. Is the content of your sidebar so important? Do you think that it should have the same weight as the titles of your posts? ? I guess you'll agree with me that no.

The Rest of Headers

From H3 to H6 it's just a matter of you thinking about the relevance of your content when applying the appropriate tag. For example, you could use H3 for the titles of the sidebar and the widgets, but if you consider using many H3 in your content, and you want it to be more relevant than the widgets then it would be a good idea to use H4 in the sidebar. It's something you have to experiment with.

How do I apply all this?

As all the above has been theory, now it's practice. For this you must edit the files of your theme. For example:

  • To remove the H1 tag from the title or logo of the blog, review the file header.php
  • To remove the H2 tags from the widgets you will have to modify the sidebar.php or even functions.php .
  • To use the H1 tag as a page title in the posts you must retouch single.php and page.php . [19659024] To use H2 tags in posts or pages, use the HTML editor or the visual editor format selector

I hope the post was clear and that some simple tweaks in your header tags improve SEO your blog.

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you: