Max
Max
> > 后期会进行添加,另外欢迎提交PR > > 由于对主题改的地方不少 就不提交PR了 增加UA这个可以参考 https://github.com/mrdong916/wordpress-theme-puock/commit/80e5351eebadb9f3e26663b2b39e2257f2900363 404
目前应该是按类似字母顺序排序的,实际调用了get_tags()函数:https://developer.wordpress.org/reference/functions/get_tags/ 个人的两点建议供参考: 1、可以开发根据频次排序的tags列表 2、如果有网页缓存,标签随机出现的意义不大,不利于寻找标签啊。 有两个思路实现: a. 前端获取到标签列表,进行随机处理,不会受网页缓存的影响 b.修改/wordpress-theme-puock-2.6.2/inc/fun/widget.php, 用shuffle函数进行随机处理, 该文件785行附近 ```php function widget( $args, $instance ){ $this->get_common_widget_header($instance); echo ''; $tags = pk_cache_get(PKC_WIDGET_TAGS); if(!$tags){ $tags = get_tags(); pk_cache_set(PKC_WIDGET_TAGS,$tags); } $max_count =...
> 同希望能适配 WpEditor.md 目前很多markdown语法失效 可以考虑在主题设置里,脚本及样式,头部流量统计代码,添加如下代码,同时关闭主题的公式。 ```html MathJax = { tex: { inlineMath: [['$', '$'], ['\\(', '\\)']] }, svg: { fontCache: 'global' } }; ```
开启了数学公式?
> * 主题版本号:2.5.3 > * WordPress版本:5.8.4 > * 问题阐述: > 如题,在文章中加入``后,点击文章右下角的页面按钮翻页后,latex失效。 > 经过分析后发现,如果给翻页按钮的标签加上` target="_self" rel="noopener"`,就可以解决问题。 > 由于我不会php,所以我的解决方法是在single.php 51行处定义的link_pages后面加上 > $link_pages = str_replace("class="post-page-numbers"", "class="post-page-numbers" target="_self" rel="noopener"", $link_pages); 我的不存在问题,我没用主题的latex功能,将latex写死了,参考: http://docs.mathjax.org/en/latest/web/configuration.html ,主题的 header.php...