删除wordpress菜单函数中的div ul li标签-WordPress主题

摘要:大挖在帮客户仿一个wordpress企业网站时,遇到一组导航菜单模板代码是a标签的,并不在li内,但是wordpress…

大挖在帮客户仿一个wordpress企业网站时,遇到一组导航菜单模板代码是a标签的,并不在li内,但是wordpress程序默认的菜单函数调用都是自带生成li标签,如果这样出现,会导致很多问题,样式上还有整体结构上都会混乱,下面为wordpress默认的菜单函数输出格式:

我们可以通过’container’ => false,’echo’ => false,’items_wrap’ => ‘%3$s’,对这三个变量的修改来达到我们想到的wordpress菜单去除div li a的目的;当然大家可以灵活运用;当造属于自己的菜单标签样式。下面为实现的方法

来源:http://www.wazhuti.com/567.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_13244.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?