13 How to add Quick Edit Pencil to Blogger Posts
Wednesday, July 16, 2008 /

The "Quick Edit" pencil icon provides a link to edit our blog posts while viewing blog pages in our browser.



This function is always present in Blogger's default templates. However, if you have customized your template or are using a non-standard template, you may notice this function is missing from your blog pages.



In this quick tutorial, I'll explain how you can check if the "Quick Edit" function is present in your blog template, and how this can be restored if you find it's missing.







Check the quick edit settings


The first thing we should do is check that the quick editing is activated in your blog's settings. To check this, go to Settings>Basic in your Blogger dashboard and scroll down to the section which says "Show quick editing on your blog".






You should ensure this option is set to "yes" and save this setting.



Then go to Layout>Page Elements in your Blogger dashboard, and click on the "edit" link for the Blog Posts widget.



On this pop-up page, you should ensure you have checked the "Show quick editing" option which enables you to quickly edit your blog posts.












Check if the required code is present in the template




Next we need to check if the code required to make these icons appear is still present in your template.



To find out, go to Layout>Edit HTML in your Blogger dashboard. Check the "Expand widget templates" box, then search for this section of code:





<b:includable id='postQuickEdit' var='post'>

  <b:if cond='data:post.editUrl'>

    <span expr:class='"item-control " + data:post.adminClass'>

      <a expr:href='data:post.editUrl' expr:title='data:top.editPostMsg'>

        <img alt='' class='icon-action' src='http://www.blogger.com/img/icon18_edit_allbkg.gif'/>

      </a>

    </span>

  </b:if>

</b:includable>

The easiest way to locate this section is to use your browser's search function and find the following phrase:



b:includable id='postQuickEdit' var='post'

If this section of code is present in your template, you're already halfway towards adding those quick edit icons again.



If this section of code is not present in your template, you will need to copy the entire b:includable section above, then paste this just before the following line of code in your template:



<b:includable id='comments' var='post'>

Once you are sure that this code is present in your template, you need to add a simple line of code to the posts section where you would like your quick edit icon to appear:



<b:include data='post' name='postQuickEdit'/>

In this template, my quick edit icon is located in the "post-footer" section, like this:



<div class='post-footer-line post-footer-line-1'>

<b:include data='post' name='postQuickEdit'/>

</div>

If  the "post-footer-line" section is not present in your own Blogger template, you may prefer to add the quickedit code just after this line instead:



<data:post.body />

Once you have added this line of code, preview your template. The quickedit icons will not appear in the preview, but if you have made any errors during these changes, the preview will make you aware of this.



Finally, you can proceed to saving your template. Then view your blog in your browser. Your quick edit icons should now appear below each of your blog posts which allows you to easily edit posts when you are logged in to your Blogger account.





Did this work for you?


I hope this tutorial has enabled you to restore missing quick edit pencil icons for your Blogger posts with the minimum of fuss!



Please let me know if this tutorial has been useful for you by leaving your comments and opinions below.

13 comments:

February 5, 2009 at 9:15 AM Kim said...

Worked for me. You rock!

February 27, 2009 at 6:23 AM Graeme said...

If I enable third-party cookies, it works for me, but I don't want third-party cookies enabled. Is there any way to enable *some* third-party cookies?

April 24, 2009 at 5:51 AM Malik said...

it works thank you

May 10, 2009 at 3:56 AM ∂αηιєℓ said...

It works for me. Though the placement of the line to get the QuickEdit is a bit tricky depending on each own templates. I put the line just before this code:

< div class='post-header-line-1'/ >

Because it suits better there.

Check it out at:
http://premiumtricks.blogspot.com/

Thanks!

May 20, 2009 at 5:02 AM ZK@Web Marketing Blog said...

A crawler (or spider) is a program which is designed to visit a web site and determine the content of that site. It does this by following all of the links and branches throughout that site and pulling relevant keywords from the pages.

May 20, 2009 at 8:37 PM Jeff said...

My quick edit button wasn't showing up in my template (Minimalist E) and I couldn't figure out why because it looked like all the code was there. After reading this, I had a "d'oh!" moment when I realized the template author just neglected to display the icon! (Everything was there except the img tag.) So, thanks - this worked for me.

May 23, 2009 at 1:04 PM Sun Jun said...

Help! The problem for me is that this conditional statement
if cond='data:post.editUrl'

returns false! Which means that my editUrl is empty. If I remove the "if" statement, the quickedit icon appears but clicking the icon only redirects me to the main page of my site.

Hope you can help me solve this problem.
Thank you

June 12, 2009 at 7:43 AM Izhar Fareed said...

Hi Amanda !

I am using Falkner-Press theme from bloggertricks.com
I have done this trick but it doesn't work. Please help me...Please....Please
My Blog

xtremecircuits.blogspot.com (under construction)

My Email ID

izhar@gmx.com

Please help !

King Regards
Izhar Fareed

June 21, 2009 at 2:15 PM Tijl said...

I found the pieces of code in the right places and settings where right too. But it didn't work.
Some extra searching learned me it had to do with cookies. The problem was the same like the one NM wrote about. I didn't had my cookies settings right. Except 3rd-party cookie wasn't checked.

Maybe you should mention this in your tutorial. Except for that minor remark your explanation is very clear and easy to understand.
Thanks.

August 19, 2009 at 8:36 AM Xatruch Morazán said...

Hello... i got it... its realy fuckeable... i cant believe how a theme can be so bad elaborated.

Im using CRYSTAL BLUE THEME... and its realy hateable when i want to use quickedit.

To get this i had to add this code:
***b:include data='post' name='postQuickEdit'/***

.... this other code:
***data:post.body/***

And its realy working.

But it takes a bad position on view.. jeje.. it appears on last letter of my posts. jejejeje... but i dont care, im the only one posting on my blog.

I hope good times for everybody... ciao

THANX A LOT AMANDA....

August 27, 2009 at 3:25 PM Gordon Wales said...

Hello Amanda - Thank you so much for helping me direct my search for the missing Quick Edit pencil. I found the code for the pencil in Aspire, scrolled down to editPostMag, removed the code that followed and replaced it with your line beginning with img alt. It worked - with a very small glitch: the pencil is positioned at the beginning of the post which, because only I will see it, is not a bother. Would like it at the end but I am not going to tempt fate.
You put me on the right path for which I heap praise upon you. Thanks, and again thanks - Gordon

Post a Comment