wordpress-theme-puock icon indicating copy to clipboard operation
wordpress-theme-puock copied to clipboard

正文页面侧边栏目录点击无法跳转

Open Zcb991 opened this issue 2 years ago • 1 comments

  • 主题版本号:最新的2.8
  • WordPress版本:6.3.2
  • PHP版本:[选填]
  • 问题阐述:正文页面侧边栏目录点击无法跳转到点击的位置。如下图所示: image image

Zcb991 avatar Oct 27 '23 06:10 Zcb991

具体贴一下你的正文内容呢,以进行复现

Licoy avatar Aug 19 '24 03:08 Licoy

新版 wordpress 的标题带有 class="wp-block-heading" 属性导致原来的正则表达式无法匹配标题生成目录锚点,我会提交一个 PR 解决此问题。以下是存在 BUG 的函数 https://github.com/Licoy/wordpress-theme-puock/blob/cbbf2cc8d02b104378d13f412d0c7605207701dc/inc/fun/opt.php#L309-L325

wc7086 avatar Mar 29 '25 07:03 wc7086