Let’s learn how to do it. Once you’re done, the codes will automatically appear below each post on post pages. Checkout the demo at the end of this post.
- Go to Template > Edit HTML
Dashboard > Design > Edit HTML. - Back up your template.
- Tick the Expand Widget Templates check box on top right of the HTML window.
- Paste the following code right under
<data:post.body/>
:1
<
b:if
cond
=
'data:blog.pageType == "item"'
>
2
<
p
>Do you like this post? Please link back to this article by copying one of the codes below.</
p
>
3
URL:
4
<
textarea
id
=
"url"
onclick
=
"this.focus();this.select()"
readonly
=
"readonly"
rows
=
"2"
style
=
"background:#eee; height: 2.6em; width: 100%;"
title
=
"Click to highlight"
><
data:post.url
/></
textarea
>
5
HTML link code:
6
<
textarea
id
=
"HTML-code"
onclick
=
"this.focus();this.select()"
readonly
=
"readonly"
rows
=
"2"
style
=
"background:#eee; height: 2.6em; width: 100%;"
title
=
"Click to highlight"
><a href="<
data:post.url
/>"><
data:post.title
/></a></
textarea
>
7
BB (forum) link code:
8
<
textarea
id
=
"BB-code"
onclick
=
"this.focus();this.select()"
readonly
=
"readonly"
rows
=
"2"
style
=
"background:#eee; height: 2.6em; width: 100%;"
title
=
"Click to highlight"
>[url=<
data:post.url
/>]<
data:post.title
/>[/url]</
textarea
>
9
</
b:if
>
- Preview and save.
No comments:
Post a Comment