2023年5月27日

WordPress: Betheme version 27.0.4 与插件Simple Business Directory - Pro不兼容

Betheme version 27.0.4 与插件Simple Business Directory - Pro不兼容,Betheme无法编辑页面内容。 禁用Simple Business Directory - Pro插件后,Betheme可正常编辑页面内容。…
2022年8月31日

WordPress: Betheme 主题 自定义CSS

#Top_bar { border-bottom: 1px solid #d3d3d3; } /*文章页标题样式*/ .post-header .title_wrapper h1 { font-size: 24px; line-height: 28px; font-weight: 300; } .widget_categories ul { background-color: transparent; color: #e34a24; } /* Filter authors display */ .authors { display: none; } .post-desc .post-head { display: none; } @media only screen and (max-width: 767px) { .section_wrapper, .container, .four.columns .widge…
2022年8月31日

WordPress: Betheme 主题 code 标签 换行 / 复制代码不换行的问题

1. 问题概述: 类似 <pre><code>xxx</code><pre> 这样的代码块中,xxx含有换行,但是在Wordpress Betheme 主题中不换行。 2. 相关原因: Betheme默认的CSS中关于<code>的white-space是这样定义的: code, q { padding: 2px 4px; white-space: nowrap; margin: 0 2px; color: #2991d6; } 3. 解决办法 在Betheme主题选项中,自定义CSS: /*代码换行*/ code, q { white-space: pre; padding: 0px; margin: 0px; border: 0px solid #e8e8e8; color: #2991d6; background-color: tr…
2022年8月28日

WordPress: 书签插件 qc-simple-link-directory 用户书签MySQL Table `wp_sld_user_entry`

用户书签MySQL Table -- -- Table structure for table `wp_sld_user_entry` -- DROP TABLE IF EXISTS `wp_sld_user_entry`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `wp_sld_user_entry` ( `id` int(11) NOT NULL AUTO_INCREMENT, `item_title` varchar(150) COLLATE utf8mb4_unicode_520_ci NOT NULL, `item_link` varchar(150) COLLATE utf8mb4_unicode…
2022年5月16日

解决WordPress中字符转义的问题 / 破折号连接符(两个减号-) / How to resolve WordPress double dash problem

The WordPress bloggers might be facing issues with double dash being converted into the single dash. This happens because of the wptexturize filter applied to the content by the WordPress. There are two methods to disable the wptexturize filter as discussed below: Solution 1: Creating a WordPress plugin Create a php file under wp-content/plugins/disable-wptexturize.php with following contents <?php /* Plugi…
2022年1月31日

wordpress删除重复文章的方法

使用mysql管理工具执行下面的sql语句  CREATE TABLE my_tmp AS SELECT MIN(ID) AS col1 FROM wp_posts GROUP BY post_title; DELETE FROM wp_posts WHERE ID NOT IN (SELECT col1 FROM my_tmp); DROP TABLE my_tmp;…
2022年1月31日

WordPress: 搬家换域名

很多朋友开始接触wordpress都是在本地安装调试好了,再上传到服务器正常运营,我也是一样当我在本地测试好了准备将网站上线,在搬家到服务器的时候遇到过的一些问题,记录分享一下我是如何为wordpress如何搬家换域名。 一、wordpress搬家 使用wordpress备份插件BackWPup中文版进行把数据备份好,把整个网站的文件打包,上传到服务器。 打开根目录下wp-config.php找到 /** WordPress数据库的名称 */ define('DB_NAME', '填写你的数据库名称'); /** MySQL数据库用户名 */ define('DB_USER', '填写你的数据库账号'); /** MySQL数据库密码 */ define('DB_PASSWORD', '填写你的数据库密码'); 修改好上传服务器覆盖原有的文件。 然后…
2022年1月31日

bbPress 标题长度限制

将 PHP 代码片段放置在主题或子主题的 functions.php 文件的底部 /** * 限制bbPress标题长度,设置发帖标题字数 * bbs.weixiaoduo.com/topic/26118 */ add_filter ('bbp_get_title_max_length','rkk_change_title') ; Function rkk_change_title ($default) { $default=70 ; return $default ; }…