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

add 3rd party link (with script) to menu item

programmeradmin1浏览0评论

I was given a code to add to a button to make a pop up for calendaring (booking).

I can figure out how to add this to the body of the page, but I'd like to add it to a menu item.

here is my code:

<a href="; class="spwidget-button" data-spwidget-scope-id="6c77380d-c2a0-4190-a51e-77cad166320f" data-spwidget-scope-uri="hopeandwellness" data-spwidget-application-id="7c72cb9f9a9b913654bb89d6c7b4e71a77911b30192051da35384b4d0c6d505b" data-spwidget-scope-global data-spwidget-autobind>Book Now</a><script src=".0.js"></script>

Placing this in the body works great...it adds a button that when clicked, opens a pop-up.

If I put this code in a menu item for a custom link, the link just disappears when I save the menu.

I also tried just adding the link to the URL field, and the class to the "css classes (optional)" field, but didn't know where I would put the script or data fields.

I was given a code to add to a button to make a pop up for calendaring (booking).

I can figure out how to add this to the body of the page, but I'd like to add it to a menu item.

here is my code:

<a href="https://hopeandwellness.clientsecure.me" class="spwidget-button" data-spwidget-scope-id="6c77380d-c2a0-4190-a51e-77cad166320f" data-spwidget-scope-uri="hopeandwellness" data-spwidget-application-id="7c72cb9f9a9b913654bb89d6c7b4e71a77911b30192051da35384b4d0c6d505b" data-spwidget-scope-global data-spwidget-autobind>Book Now</a><script src="https://widget-cdn.simplepractice/assets/integration-1.0.js"></script>

Placing this in the body works great...it adds a button that when clicked, opens a pop-up.

If I put this code in a menu item for a custom link, the link just disappears when I save the menu.

I also tried just adding the link to the URL field, and the class to the "css classes (optional)" field, but didn't know where I would put the script or data fields.

Share Improve this question asked Aug 26, 2020 at 5:40 presswordpressword 3801 gold badge4 silver badges13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

I usually add those links with "Custom links". I have tried your link and it works as expected, it shows on my menu and open the popup.

发布评论

评论列表(0)

  1. 暂无评论