2015年3月5日星期四

Add Theme Assets in Tumblr Template

You can customize your Tumblr posts using Tumblr custom theme. Check documents in this address to see how to create your own theme(How to create a custom HTML theme).

A problem is how can you include a css file in this HTML theme if you want to stylize your post in Tumblr. Fortunately, Tumblr provided a way with which you can include css files into your HTML theme.

In your Tumblr homepage, click 'Customize' -> 'Edit HTML', then click the little cog in the upper left corner, select 'Theme assets' in the popup menu, then you can upload your css files from file system to Tumblr.  Place the mouse cursor on the place where you want to link css, then click 'insert' in the 'Theme assets' menu, there will add a line in the html, like this:

http://static.tumblr.com/jij4rw2/0Jpnket8k/skeleton.css
"  />
the code in red color was generated by Tumblr.

没有评论: