Go Top
顯示具有 blogger設計 標籤的文章。 顯示所有文章
顯示具有 blogger設計 標籤的文章。 顯示所有文章

2019年10月3日 星期四

[Blogger] 2019.10.04 How to Install AddThis on a Blogger Website

Installing AddThis tools on your Blogger website is simple! In this article

How to Install AddThis on a Blogger Website

  1. If you haven’t already, you will first want to create an AddThis account. If you have already created an AddThis account, log in to your dashboard here.
  2. Navigate to the Tools tab and activate and customize the tool(s) that you would like to use on your website.
  3. From the Get the Code page, grab your unique code snippet under the HTML Website tab.
  4. Paste the code snippet that you copied earlier from your AddThis dashboard into above the closing</body> of the HTML in your website on every page you want AddThis to work.
  5. Click Save Template.

Adding Inline Tools at the bottom of a post

  1. Place the Inline code before the <div class="post-footer"> tag.
  2. Click Save Template.
Here are other examples of where you can place your Inline tools as following
This article is quoted from How to Install AddThis on a Blogger Website

閱讀更多 »

2019年8月25日 星期日

[Blogger] 2019.08.25 How To Remove the Atom In Blogger

[Blogger] 2019.08.25 How To Remove the Atom In Blogger

This article is quoted form 如何移除 Blogger 討人厭的「訂閱:文章(Atom)」?超簡單教學!
Bloggers hangout presents a simple blogger trick for "How To Remove the Atom In Blogger". It makes blogs look professional.

Step 1: Sign into your blogger account.

Step 2: Choose the blog from your dashboard and then select design.

Step 3: Now select edit html and then check expand widget template which is present on right
side corner.

Step 4: Now add below Css definition above this tag ]]></b:skin> in your template.

.blog-feeds {display :none;}
.post-feeds {display :none;}

Step 5: Preview the blog and save the template.

We successfully completed the blogger trick.

閱讀更多 »

[Blogger] 2019.08.25 How To Hide Widget Title In Blogger

[Blogger] 2019.08.25 How To Hide Widget Title In Blogger

This article is quoted form How To Hide Widget Title In Blogger
Bloggers hangout presents a simple blogger trick for "How To Hide Widget Title In Blogger". It makes blogs look professional.

Step 1: Sign into your blogger account.

Step 2: Choose the blog from your dashboard and then select design.

Step 3: You will be navigated to page elements page and add a gadget to your blog. Add a
widget with title as Advertisements and then select design.

Step 4: Now select edit html and then check expand widget template which is present on right
side corner.

Step 5: If you are using mozilla firefox then press Ctrl +F and search for widget title as
Advertisements.
(or)

If you are using google chrome then press F3 function key and search for widget title as
advertisements.

Step 6: Check for the line below in your code
<b:widget id='HTML2' locked='false' title='Advertisements' type='HTML'/>

Step 7: Get the id of widget that is written in blue in the above code. In the above example it is HTML2.

Step 8: Now add below Css definition above this tag ]]></b:skin> in your template.

#HTML2 h2{
display: none;
}

Step 9: Preview the blog and save the template.

We successfully completed the blogger trick.

If you have any doubt about this blogger trick don't hesitate to comment.

閱讀更多 »

2019年8月23日 星期五

[Blogger] 2019.08.23 Loops, loop positions, and isFirst variables in Blogger



Looping through the listing of blog posts

<b:loop values='data:posts' var='post'>
Inside the loop data:posts changes to data.post (determined by the value of var, set here as var='post')

We can reference the id of the current post in the loop as <data:post.id />
</b:loop>


Looping through the listing of blog posts with an additional index

<b:loop values='data:posts' var='post' index='i'>
The id of the current post in the look is <data:post.id />

The position of this post in the loop index is <data:i />

We can run a IF statement against this value like so:

  <b:if cond='data:i == 2'>
    This is the post contained in the loop at position 2, which in an array is Post #3 (arrays start counting at 0)
  </b:if>

</b:loop>

To do a greater-than and less-than you need to use the HTML code for greater/less, otherwise it will throw a Blogger template error.

<b:if cond='data:i &#60;=2'> for i is less than or equal to

<b:if cond='data:i &#62;=2'> for i is greater than or equal to


"is first" variables

There are a number of "is first" variables in Blogger that are unfortunately not declared on the official variable list.

data:post.isFirstPost
This variable can be used to show a different behavior on an index page for the first post, by placing it within the data:posts loop, like so:
<b:loop values='data:posts' var='post'>
   <b:if cond='data:post.isFirstPost == &quot;true&quot;'>
first psot!
   </b:if>
</b:loop>

data:post.isDateStart
This variable is used to group posts by date, often found on a Blogger site's index pages, where it shows all posts under one day/date, then moves to the next day/date without repeating that value.

data:post.firstImageUrl
This variable shows the URL of the first image used in the blog post. This is often handy for creating an index page of image thumbnails. But while the "thumbnail" variable (data:post.thumbnailUrl) only shows a 72 pixel square and only works for Google hosted images, this firstImageUrl variable shows the full image url and can be used for non-Google-hosted images.

data:post.sharePostUrl
This variable displays the absolute url for a blog post in question. Used in the social media share buttons, but can certainly be used in other cases.

data:post.snippet
This variable displays the first 140 characters of a blog post, or what comes before a jump break, whichever is first.

Example, albeit not for this usage:

<b:if cond='data:blog.metaDescription != &quot;&quot;'>
   <meta expr:content='data:blog.metaDescription' name='og:description'/>
<b:else/>
   <meta expr:content='data:post.snippet' property='og:description'/>
</b:if>
<meta expr:content='data:post.thumbnailUrl' itemprop='image_url'/>

The above code will show the first image URL as the snippet's thumbnail, along with either the post's meta description (search description in the blog post) or, if none, the 140 character snippet.


Social sharing thumbnail variable that you need

We all wanted to add a larger thumbnail image for social sharing, for example for Facebook and now Google+, but had no way to do so since the other thumbnail was only 72 pixels. Yes, there is now a new variable...

data:blog.postImageUrl
This variable, available to you in the HEAD of your template, if used on item page types, will display the first image from your blog post in all of its glory.

This article is quoted form Loops, loop positions, and isFirst variables in Blogger
閱讀更多 »

2019年2月18日 星期一

[Blogger設計] 2019.02.18 Change the Blog Title and Description

[Blogger設計] 2019.02.18 Change the Blog Title and Description
Embed from Getty Images

[Image Source:Getty Images]

Change Items

Blog Title

Change Bert Chien Life to BCL BLOG

Blog Description

Revise the content as following

Bert Chien Life blog mainly based on share my music creative work, programming learning and implementation articles. sometimes will share English learning articles.

閱讀更多 »
Copyright © BCL BLOG | Powered by Blogger