关于wordpress后台首页加载ajax.googleapis特别慢的解决办法
通过审查元素发现,拖慢后台加载速度的主要是两个路径
1.https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js
2.http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/smoothness/jquery-ui.css
都是谷歌的,现在国内访问谷歌几乎是访问不了,必须……
wordpress英文版变中文版
需要注意的是,WordPress官方英文版不包含任何语言包,也就是你在 /wp-content/ 目录下看不到 languages 文件夹,即使你设置为 zh_CN ,也不会生效,因为没有简体中文语言包!所以你必须下载对应语言的版本,解压后将 /wp-content/ 目录下 languages 文件夹(及其里面的文件)上……
iconfont字体图标的使用
一、准备工作
1、首先,进入阿里的矢量图标库,在这个图标库里面可以找到很多图片资源,当然了需要登录才能下载或者使用,用GitHub账号或者新浪微博账号登录都可以
2、登录以后,可以搜索自己需要的资源,然后直接下载使用,或者建立图标库然后再使用,例如这里以删除的图标为例……
magento PayPal gateway has rejected request. Security header is not valid (#10002: Security error).
出错是由于设置了Current Configuration Scope:default config,没有在main website设置对应的default config
magento-Max input vars is reached
Max input vars is reached¶
The problem might appear if not all options were sent to PHP in POST. This has nothing to do with the extension, you should just tweak your server’s settings a bit.
Please check your PHP settings using a phpinfo command:
; The va……
使用 wp_trim_words() 截取限定字数的内容
WordPress 3.3 新增了一个 wp_trim_words() 函数,专门用来截取限定字数的内容,比如文章、摘要、标题等:
<?php
echo wp_trim_words( get_the_content(), 100 ); // 文章内容
echo wp_trim_words( get_the_excerpt(), 100 ); // 文章摘要
echo wp_trim_words( get_the_ti……
通过htaccess实现301重定向
1、出于SEO考虑,将wangqu.org重定向至www.wangqu.org。本站就使用了这种重定向的方法避免页面权重分散。
一旦选择了带WWW的为主域名,今后就不要随意更改,方法如下:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.wangqu.org$ [NC]
Re……
magento 用户注册没反应
If you're using a custom theme, make sure you update the customer registration form template, which is updated in Magento 1.9.2.2 (and security patch SUPEE-6788). It is located in:
template/customer/form/register.phtml (line 46)
OR
template/persistent……