如何在內文放置google ads? - 部落格

Victoria avatar
By Victoria
at 2013-05-16T18:35

Table of Contents

找到

<b:if cond='data:post.title'>
<h3 class='post-title entry-title' itemprop='name'>
<b:if cond='data:post.link'>
<a expr:href='data:post.link'><data:post.title/></a>
<b:else/>
<b:if cond='data:post.url'>
<b:if cond='data:blog.url != data:post.url'>
<a expr:href='data:post.url'><data:post.title/></a>
<b:else/>
<data:post.title/>
</b:if>
<b:else/>
<data:post.title/>
</b:if>
</b:if>
</h3>
</b:if>

底下插入


<b:if cond='data:blog.pageType == "item"'>
<p style="text-align: center;">
<script type="text/javascript">
google_ad_client = "ca-pub-4693782726428989";
google_ad_slot = "3154600482";
google_ad_width = 336;
google_ad_height = 280;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
</b:if>

廣告大小樣式自行變更

※ 引述《a535172306 (Livia)》之銘言:
: 謝謝好心人的幫助解決了我上次插入fb留言板的問題,
: 這次小妹又來發問了...
: 請問該怎麼在blogger內文中插入google ads呢?
: 我希望可以插在文章標題下方(首頁不顯示喔!)
: 我爬了好多文也試了很多次,
: 可是不知道是我裝了太多hack導致很混亂還是怎樣
: 試了之後還是都失敗耶@@
: 我的部落格:http://www.liviatravel.com
: 我的html:
: https://www.dropbox.com/s/10s63kp9nbgaa5a/template-3428230764356852732.xml
: 希望高手能告訴我要在哪邊插入才會正常顯示> <

--

All Comments

網誌同步通知到FB

Erin avatar
By Erin
at 2013-05-15T23:53
如果部落格同步分享到FB上 FB塗鴉牆上會出現 我在痞客邦 PIXNET 發表了新文章,快來看看吧~ 有辦法改掉這段話嗎? - ...

懇請高手指點fb留言板無法嵌入...

Thomas avatar
By Thomas
at 2013-05-12T21:02
剛從無名搬家到Blogger, 就發現一個大問題... 爬了很多文也都照著做了, 也有apple ID和FB個人帳號ID, 但FB留言板就是無法嵌入,就存檔之後打開網頁下面還是沒半點動靜atat 我的部落格: http://liviatravel.blogspot.tw/ 我的HTML: ht ...

字體大小

Candice avatar
By Candice
at 2013-05-12T16:40
我發現痞客邦的字體 是不是都預設是10? 沒辦法讓他預設是12嗎? 謝謝~ - ...

文章張貼日期如何顯示不同格式

Christine avatar
By Christine
at 2013-05-12T10:28
日前下載一個 Template,套用後發現每一篇貼文的文章日期 僅會顯示「下午10:37」或「上午9:20」,但我需要的格式包含年、月、日 搜尋了樣板內容,查到顯示日期的 Widget Tag 名稱是: data:post.timestamp 請問高手,要改成哪一種 Widget Tag 才會顯示完整 ...

RSS的資訊一直停在2011年的文章

Ivy avatar
By Ivy
at 2013-05-12T00:35
各位前輩好 最近經其他網友的提醒 才赫然發現我Blogger的RSS文章進度一直停留在2011年 google了一下發現遇到這種問題的人似乎不多 唯一有人提到的 FEED Validator 但讀取我的RSS卻發生錯誤 請問這問題應該怎麼解決呢? 以下是我部落格的的RSS http://roger6.blo ...