Title: Theme Tweak
Author: Keep2theCode
Published: <strong>2012 年 7 月 16 日</strong>
Last modified: 2013 年 1 月 13 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/theme-tweak.svg)

# Theme Tweak

 作者：[Keep2theCode](https://profiles.wordpress.org/2thepoint/)

[下载](https://downloads.wordpress.org/plugin/theme-tweak.2.0.zip)

 * [详情](https://cn.wordpress.org/plugins/theme-tweak/#description)
 * [评价](https://cn.wordpress.org/plugins/theme-tweak/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/theme-tweak/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/theme-tweak/#developers)

 [支持](https://wordpress.org/support/plugin/theme-tweak/)

## 描述

IMPORTANT: If you are updating this plugin from an older version, be sure to have
backups of any stylesheets or icons, because you will need to re-upload them via
the new form.

This plugin allows you to “tweak” or do minor overrides to the style for any theme,
much like a child theme. But it also makes it easy to show images for your site’s
logo, url, smartphone bookmark, and social sharing at sites such as Facebook.

For styles, first create a style sheet for the theme you want to adjust. For example,
if you have a theme called soverycool, you might name your style sheet soverycool.
css. Your file only needs to contain those style elements you’d like to change.

Next, upload it via the Upload File form. Once your file is uploaded, just insert
its name into the css filename box and press Set Style. If you have several themes,
you can keep all of your custom style sheets in that directory as long as they have
different names. Then just enter the name for whichever theme you’re using at the
time.

To stop using your custom style, just remove the name from the css filename box 
and press Set Style. You do not need to actually delete your files from the uploads
directory.

For icons, upload them via the Upload File form and repeat for each icon. The names
have to be favicon.ico, phone.png, share.png, and logo.png. Changing them is as 
easy as uploading new files with the same name. For your site logo to appear, the
following code needs to be added to your theme’s header in the place you want it
to appear: `<?php thtw_logo(); ?>`

## 屏幕截图

 * [[
 * Theme Tweak Options page

## 安装

 1. Upload `theme-tweak` to the `/wp-content/plugins/` directory
 2. Create any style sheets and/or icons you may have for your themes.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Go to Settings and choose Theme Tweak
 5. If you have a custom style sheet, enter the name of your style sheet and press 
    the Set Style button, then upload it via the Upload File form.
 6. If you have custom images, upload them one at a time via the Upload File form.

## 常见问题

### I am upgrading from an earlier version, will my old files still work?

You will need to upload all those files again, this time via the forms on the Theme
Tweak Settings page. The style sheet name should still be set from before, if you
used that.

### Is it important how I name the files?

For styles, only the extension (.css) matters, but it would be a good idea to name
the file after the theme it overrides. For icons, they must be named exactly as 
shown in the Description.

### What are those icon files anyway?

The favicon.ico file is the site url image that appears in the address bar of your
browser. There are free services online where you can create your own, and tutorials
for making it with whatever graphics program you may have. It can’t just be .png
or .jpg and renamed, but must be created as an .ico file.

The phone.png image is what will appear if someone bookmarks your site via their
smartphone. The size isn’t critical, though roughly square is ideal, but it has 
to be a .png file.

The share.png image also has to be a .png file, but beyond that you can make it 
any shape or size. This icon is what will appear if someone shares a post from your
blog on a site such as Facebook, rather than picking the first image it sees. Facebook
recommends an image that is at least 200px at its minimum dimension.

The logo.png image must be a .png file as well, and like the other images, it will
only appear if the file is uploaded. This one requires code added to the header.
php file of your theme where you want it to appear: `<?php thtw_logo(); ?>`

## 评价

此插件暂无评价。

## 贡献者及开发者

「Theme Tweak」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Keep2theCode ](https://profiles.wordpress.org/2thepoint/)

[帮助将「Theme Tweak」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/theme-tweak)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/theme-tweak/)，查看[SVN仓库](https://plugins.svn.wordpress.org/theme-tweak/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/theme-tweak/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/theme-tweak/)。

## 更新日志

#### 2.0

 * Added functionality for form-based file uploads rather than manual uploads via
   FTP. The uploads directory replaces the styles and icons directories, so all 
   files will need to be uploaded anew. This is separate from the WordPress media
   uploader.

#### 1.6

 * Added functionality for site logo, changed required names for some images.

#### 1.5

 * Added functionality for favicon, smartphone icon, and sharing icon.

#### 1.0

 * Initial release

## 额外信息

 *  版本 **2.0**
 *  最后更新：**13 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.3 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/theme-tweak/)
 * 标签
 * [css](https://cn.wordpress.org/plugins/tags/css/)[customize](https://cn.wordpress.org/plugins/tags/customize/)
   [icons](https://cn.wordpress.org/plugins/tags/icons/)[style](https://cn.wordpress.org/plugins/tags/style/)
 *  [高级视图](https://cn.wordpress.org/plugins/theme-tweak/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/theme-tweak/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/theme-tweak/reviews/)

## 贡献者

 *   [ Keep2theCode ](https://profiles.wordpress.org/2thepoint/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/theme-tweak/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://keep2thecode.fether.net)