Put The Post Championship Earlier The Weblog Title

Some spider web log owners desire to bring the titles of the posts easier to spot, inward search hitting lists.

The solution, to them, is to bring the post titles look earlier the spider web log titles, inward the template header. If y'all desire your spider web log to bring the post championship inward front end of the spider web log title, this is a uncomplicated plenty change.

It's best to brand this alter entirely touching on display of private pages (when indexed), too posts. Other search hitting listing entries, such every bit archive, label, too principal page displays, should present the default spider web log page championship - too non confuse the potential readers amongst irrelevant detail, inward the search hitting listing entries.

This alter requires a pocket-size amount of extra code, to position the specific search hitting entries, where the display alter is appropriate.

It's a uncomplicated change.
Since none of the code is spider web log specific, it's a uncomplicated "search too replace" change. Influenza A virus subtype H5N1 cheque for page type of "item" is all that y'all need.

As always, I volition suggest y'all to backup the spider web log template, before too afterward making this change.

Find the default championship code, using "Edit HTML".
Use the Template HTML Editor. Locate
<title><data:blog.pageTitle/></title>
in the template code.

Add four lines of code.
Replace
<title><data:blog.pageTitle/></title>
With
<b:if cond='data:blog.pageType == "item"'> <title><data:blog.pageName/> | <data:blog.title/></title> <b:else/> <title><data:blog.pageTitle/></title> </b:if>
And hitting "Save template".

The alter won't bring immediate effect.
Now, await spell your "item" pages (individual pages / posts) are re indexed - too this may non happen, over night. Again, "index" pages (archive, label, too main page displays) won't, too should not, survive affected yesteryear this change.

The alter needs to survive selective.
If y'all click on the label (below) of "Blog Title", y'all cash inward one's chips a label search page, amongst the pageTitle of ": Blog Title". For label searches, y'all desire the spider web log championship to precede the label advert - so, y'all role "data:blog.pageTitle" (the default).

If you're using Jump Break, to shorten principal page entries, this alter may bring to a greater extent than impact. Blogs which display consummate post content inward "index" view won't bring every bit much attending paid to the posts inward "item" view.

Influenza A virus subtype H5N1 useful option / complement, to the championship sequence change, would survive well chosen search description meta tags. Proper sizing too wording, of all descriptions too titles, may brand your search hitting entries to a greater extent than distinctive too.

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel