最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Remove Link from Wordpress Menu

programmeradmin2浏览0评论

I am looking to remove the <a> from around a wordpress link and replace it for a <span>.

There are lots of articles about how to remove the href="" but this still leaves the <a>.

Example output: You will see on the "About us" there is no <a>

        <li><a href="#/">Home</a></li>
            <li><a href="#/work">Our work</a></li>
            <li><span>About us</span>
                <ul>
                    <li><a href="#/about/history">History</a></li>
                    <li><span>The team</span>
                        <ul>
                            <li><a href="#/about/team/management">Management</a></li>
                            <li><a href="#/about/team/sales">Sales</a></li>
                            <li><a href="#/about/team/development">Development</a></li>
                        </ul>
                    </li>
                </ul>
            </li>

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论