admin管理员组文章数量:1122832
NOTE: StackOverflow closed this question claiming it was a duplicate but there isn't any similar questions. I looked through the other "similar" questions but those were in regards to adding endpoints to the My Account menu. My issue is that the endpoint exists and shows up in the My Account menu but it is missing from the My Account DROPDOWN menu that is part of the Porto theme.
I'm building a Wordpress site and use the Porto Theme that came bundled with the YITH Wishlist plugin integrated into the design. The only thing that doesn't make sense is that the My Account Dashboard has the Wishlist link but the dropdown menu doesn't contain the Wishlist link. I have two other 3rd party plugins that automatically added the links (Store Credit and Trout Points & Rewards) to both the My Account Dashboard and dropdown menu. How does a 3rd party plugin make this happen yet the bundled plugin doesn't? I spoke to Porto support who are normally excellent but they said that it was the default behavior. To me it seems more like a design oversight though. They said I would need a custom solution to add that to the dropdown menu. Can anyone tell me how to add the Wishlist to the dropdown menu where the red arrow is on the screenshot?
I haven't tried any coding on my own because this is above my skill level.
This is what inspecting the html of my dropdown looks like (Wishlist is missing):
<ul class="porto-narrow-sub-menu sub-menu pos-left">
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--dashboard is-active menu-item">
<a href="/">Dashboard</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--orders menu-item">
<a href="/">Orders</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--store-credit menu-item">
<a href="/">Store Credits</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--downloads menu-item">
<a href="/">Downloads</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--edit-address menu-item">
<a href="/">Addresses</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--payment-methods menu-item">
<a href="/">Payment methods</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--edit-account menu-item">
<a href="/">Account details</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--loyalty_reward menu-item">
<a href="/">Trout Points & Rewards</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--customer-logout menu-item">
<a href="/?_wpnonce=108b381e92">Log out</a>
</li>
</ul>
Here is the html of the dashboard (Wishlist is there):
<nav class="woocommerce-MyAccount-navigation">
<h5 class="font-weight-bold text-md text-uppercase pt-1 m-b-sm">My account</h5>
<ul>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--dashboard is-active">
<a href="/">Dashboard</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--orders">
<a href="/">Orders</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--store-credit">
<a href="/">Store Credits</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--downloads">
<a href="/">Downloads</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--edit-address">
<a href="/">Addresses</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--payment-methods">
<a href="/">Payment methods</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--edit-account">
<a href="/">Account details</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--loyalty_reward">
<a href="/">Trout Points & Rewards</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--wishlist">
<a href="/">Wishlist</a>
</li>
<li class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--customer-logout">
<a href="/?_wpnonce=108b381e92">Log out</a>
</li>
</ul>
</nav>
本文标签:
版权声明:本文标题:php - Endpoint exists and shows up in My Account dashboard. Need to add endpoint to My Account DROPDOWN menu in Porto theme 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736305937a1932770.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论