Neverland Blog

  • Home
  • About
  • Archives
  • Collections
  • WP Themes
  • Links & Credits
Facebook Twitter RSS
Category Archives: WordPress

WordPress 3.3 中加载脚本与样式表的新途径

Posted on December 25th, 2011 by Chong.Freeman, 4 comments

  WordPress 版本 3.3 发布已有一个星期了,前些天有朋友问到 WP 主题在加载脚本与样式表时报错的问题,报错内容如下(需开启 WP_DEBUG 模式):

Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.)

Read more…

Categories: WordPress | Tags: Scripts, Styles

Coming soon: Nest Theme 1.1

Posted on October 21st, 2011 by Chong.Freeman, 11 comments

Nest Theme 1.1.1 ScreenshotAccording to all the comments about Nest Theme from the users, I’ve corrected the errors, and made the theme more useful and customizable. Thanks to everyone who does experience my works!

Version 1.1.1 has some new features:

  • Selective effect of multi-level navigation menu
  • Using JavaScript (jQuery): Multi-level navigation menu
  • Modifiable website info string ( replaces the default copyright string )
  • Arrow marks of parent menu items containing sub-menu
  • Fixed CSS compatibility in IE6 and IE7

v1.1.1 :?: Does it mean singles?? We all know the Singles’ Day of the century (2011-11-11) is actually coming too! :razz:

Theme Demo: http://www.ychong.com/demo/wordpress/

Read more…

Categories: WordPress | Tags: WordPress

wp_enqueue_script()、wp_enqueue_style() 加载脚本与样式表

Posted on September 10th, 2011 by Chong.Freeman, 3 comments

==================== The following content was written on December 25th, 2011 ====================

  WordPress 版本 3.3 中,对主题加载脚本与样式表的过程强制要求在 action wp_enqueue_scripts 和 admin_enqueue_scripts 进行处理,详细内容请见:WordPress 3.3 中加载脚本与样式表的新途径(http://www.ychong.com/wordpress-v-3-3-enqueue-scripts-and-styles/)。

==================== The following content was written on September 10th, 2011 ====================

WordPress Functions to Enqueue Scripts and Styles  在许多场合中,不管是制作修改主题或插件,我们都需要调用一些 JavaScript 库,或者样式表等。这时,我们不应该直接去修改主题的 header.php,或者添加代码到 wp_head() 或 wp_footer() 钩子上,而是要使用 WordPress 官方文档建议使用的 WP 内建的 wp_enqueue_script() 和 wp_enqueue_style() 等函数进行操作。

  本文将详细介绍这几个函数的作用和标准用法,以及其他等效办法的利弊。

Read more…

Categories: WordPress | Tags: Scripts, Styles

WordPress 主题发布:Nest

Posted on July 11th, 2011 by Chong.Freeman, 40 comments

WP Theme Nest Screenshot  笔者的 WP 主题处女作 Nest 已于 2011 年 7 月 10 日正式被 WordPress 官方添加至其主题目录中。

  这款主题笔者从今年三月份就开始提交了,一直审核不通过。从起初的机器审核(Automated Theme Scanning)到后面的人工审核(Test Data 等),前后共历时约四个月,更换了四个版本号(从 1.0.0 到 1.0.4)。期间不断修改和增删了许多功能代码。

  本文将简要介绍在这漫长的提交过程中,审核机制所报出的各种问题和其相应的解决办法,以及得出的一些结论。望大家能从中得益。

Read more…

Categories: WordPress | Tags: WordPress

WordPress 文章定时发布(Scheduled)功能

Posted on April 13th, 2011 by Chong.Freeman, No comments

  WordPress 有一个称作文章定时发布的功能(在英文版里为“Scheduled”),允许用户在后台为文章输入一个未来的“发布日期”,以定义 WordPress 在详细的预定时间“发布”指定文章,达到“文章定时发布”的效果。

Read more…

Categories: WordPress | Tags: WordPress

Recent Posts

  • 不要嫁给程序员的若干个理由
  • WordPress 3.3 中加载脚本与样式表的新途径
  • Log on December 9th: Peaceful Life
  • Coming soon: Nest Theme 1.1
  • Discuz! X 中自定义 PHP 代码 (Backlinks.com) 添加方法
  • Log on October 2nd
  • wp_enqueue_script()、wp_enqueue_style() 加载脚本与样式表
  • 致我的兄弟、好友、以及家人们
  • WordPress 主题发布:Nest
  • 在普通电脑上安装 Mac OS X Snow Leopard (苹果雪豹)教程

Categories

  • Application (3)
    • PHP (1)
    • Linux (1)
    • Macintosh (1)
  • Web (8)
    • Architecture (3)
    • Web others (5)
  • WordPress (5)
  • About me (56)
    • Diary (28)
    • Growing (9)
    • Learning Notes (14)
    • Something (5)

Recent Comments

  • Loading...

Tags

000webhost Apache Backup Carnegie CCF Eclipse FlashGet GDOI Google Google AdSense GRUB Hacker htaccess Linux Love Mac OS X Music MySQL New Age New Moon NOIP Nokia OI PHP Programmer Programmers Scripts Snow Leopard Styles Thunder Twilight Ubuntu WAMP Windows Windows 7 WordPress 备案 手机QQ 聊天记录 高考
© 2011 Neverland. [CODE IS POETRY] Powered by WordPress. Concerto by Neverland.