return FALSE; $r = well_tag_thread__update(array('id' => $id), $update); return $r; } function well_tag_thread_find($tagid, $page, $pagesize) { $arr = well_tag_thread__find(array('tagid' => $tagid), array('id' => -1), $page, $pagesize); return $arr; } function well_tag_thread_find_by_tid($tid, $page, $pagesize) { $arr = well_tag_thread__find(array('tid' => $tid), array(), $page, $pagesize); return $arr; } ?>WordPress Menu Prepends URL To My Anchors
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

WordPress Menu Prepends URL To My Anchors

programmeradmin1浏览0评论

I have a menu created in the WordPress menus page. It is made up of anchors created using custom links. For instance, I have a custom URL #claims which is supposed to anchor drop down to the "claims" portion of my page. However, upon saving this menu and visiting the page, WordPress prepends the URL before the anchor so the outputted href link is mydomain/#claims (it ignores adding the page slug). When I click on the anchor, it takes me to the home page! When I manually add the page slug into the custom link, so that it is /slug/#claims, the page refreshes and THEN drops down to the anchor. When the href is just #claims, everything works fine (I tested that by editing the href in the Chrome inspector).

I just want to click on my menu link and have it drop me down to the appropriate section without refreshing the page.

Is there a way to make WordPress avoid prepending anything in front of the anchor?

发布评论

评论列表(0)

  1. 暂无评论