突触的主题文件

一般文件


上衣

入门指南

突触可以被用来作为一个独立的主题还是<strong>孩子的主题</strong>与一个<strong>父主题</strong>。如果你选择使用突触作为一个独立的主题,自动更新将被禁用。这是为了确保你不会失去任何自定义设置。

使用突触作为一个孩子的主题,安装两个突触和<strong>突触的孩子</strong><strong>父主题</strong>的主题(包括在你的下载包)和<strong>激活的子主题</strong>。对于开发商来说,请参阅随附的functions.php文件高级布局自定义。

当你第一次下载的突触就会压缩文件。“<strong>synapse_wp_unzip.zip</strong>。提取此文件在本地。你会看到一些文件和文件夹:

  • readme.html(技术文件)
  • Synapse_Sources.zip (Layered Adobe Fireworks and Photoshop Graphic Source Files)
  • synapse.zip (the parent theme/framework)
  • synapse-child.zip

安装both thesynapse.zipsynapse-child.zipfiles into WordPress. Of course, you can just install the parent theme as a standalone theme, but remote updates will be disabled.

突触的安装文件夹

一旦你已经安装并激活的突触,你就可以开始配置选项。你可以觉得这些选项出现在→主题选项。WordPress有几个选项,将会适应的,所以一定要看看主要条款如你最初的主页和博客的设置

上衣

侧边栏和小工具

Synapse has various locations you can display your content.Aside from the main content area, you can display content in your sidebars left, right, teaser, footer, etc. You can set up your widgets from Appearance → Widgets .

One of the current shortcomings of WordPress is the inability to assign specific Widgets to individual pages. For smaller sites, this is a non-issue. For larger sites using WordPress as a CMS, you’ll want a lot more control. This is where the 5-star ratedDynamic Widgetsplugin comes in.

Once you’ve installed Dynamic Widgets, you’ll notice a little link at the bottom of each of your Widgets that will either read static or dynamic .Static means it is assigned to all pages (or posts) for that specific location.动态意味着你已经配置的控件将显示在特定的页面。所以“静态链接开始分配你的组件在你的网站。

 

上衣

Content Formatting Tips

WordPress has its fair share of quirks. If you find that WordPress auto paragraph formatting (wpautop) is getting in the way of your markup, simply add a custom field to your Page or Post named “wpautop” with a value of “false”.


disable wpautop

Page Titles

突触有一个设计师的网页模板,将隐藏的网页标题栏。如果你想隐藏一个页面或文章的标题,简单的创建一个自定义字段(在相同的方式,如上图所示)命名为“hidetitle”值设置为“true”。

上衣

短代码

Synapse has several built in shortcodes. You can see them in action on theshortcodes demo page

Callouts

A callout is (by default) a rounded cornered styled inset box. It has two arguments:

  • align - aligns the callout left, right, or center
  • width - Only use this parameter if you must.Defined widths will not scale properly on all devices.Instead, consider embedding them in one of the column shortcodes.
[callout align="center" width="400"]
This is a 400px centered callout box
[/callout]

[callout align="left" width="200"]
This is a 200px left aligned callout box
[/callout]

[callout align="right" width="100"]
This is a 100px right aligned callout box
[/callout]

[callout]
This is a callout that will expand the entire width of its parent container.
[/callout]

Fluid Columns

You’ve seen these before. 分数的短码的组合允许您插入扩展列到你的内容。这里唯一的规则是,最后一列必须有一个后缀“_last”。见下面的例子。

/ /三列的例子
 [ one_third ] 
柱一添加任何你想要的东西在这里
 [ ] [ ] one_third 
 
 one_third 
柱两添加任何你想要的东西在这里
 [ ] [ ] one_third 
 
 one_third_last 
列三添加任何你想要的东西在这里
 one_third_last [ / ]

可用的选项–多达6列

  • one_third
  • two_thirds
  • one_half
  • one_fourth
  • three_fourths
  • one_fifth
  • two_fifth
  • three_fifth
  • four_fifth
  • one_sixth
  • five_sixth

Cross-Browser CSS3 Buttons

Tested in IE7,IE8,IE9,Webkit, and Mozilla browsers.Preview all colors and sizes

[button align="center" color="white" size="small" link="http://www.simplethemes.com"]Small Button[/button]

Tabs

You can create tabs content within your content as well. Each tab needs a unique id (identifier) in order to work.

[tabgroup]
[tab title="Tab 1" id="t1"]Tab 1 content[/tab]
[tab title="Tab 2" id="t2"]Tab 2 content[/tab]
[tab title="Tab 3" id="t3"]Tab 3 content[/tab]
[/tabgroup]

Accordion Toggles

在这里看到他们的行动。

[切换标题=“按钮文本”] 
切换内容之一
 [切换] 
 
 [切换标题=“按钮文本两”] 
切换内容两
 [切换] 
 
 [切换标题=“按钮三”] 
切换内容三
 [切换]

最新帖子

插入一个指定类别的最新帖子列表(S)与可选的缩略图和摘录任何页面。

[最新摘录=“true”大拇指=“真”width=“50”height=“50”数=“5”=“猫8,10,11”]

Insert a list of related (tagged) posts.

[related_posts]

Raw HTML

Sometimes the WordPress editor will strip out your more advanced markup. 这可以是一个真正的阻力。用你的代码在[原]标签,你可以解决这个问题。

[原]你安全的HTML代码[原]

结算

如果你需要明确的一个元素,你可以使用“清除”短,下面。

清空

清晰的水平线:

类似于“清”,这做同样的事情,但增加了一个水平线以下。

[该]

 

上衣

Advanced Customization Hooks

You can find a list of these hookable actions and functions throughout functions.php:

  • st_above_header // Hook to add content before header
  • <strong>st_header_open</strong> / /打开标题标签
  • <strong>st_header_extras</strong> /额外的内容被添加到页眉
  • <strong>st_logo</strong> /重写主题标志功能(S)
  • <strong>st_header_close</strong> / /关闭标题标签
  • <strong>st_below_header</strong> /钩添加内容后的头
  • st_navbar // Opening navigation element and WP3 menus
  • st_before_content // Hook to add content before content
  • st_after_content // Hook to add content after the content
  • st_before_comments // Hook to add content before comments
  • st_after_comments // Hook to add content after comments
  • st_before_footer // Hook to add content before the footer
  • st_footer // The footer (includes sidebar-footer.php)
  • st_footernav // Footer navigation menus
  • st_after_footer // Hook to add content after the footer