Solved

Custom Widget

  • 21 November 2021
  • 6 replies
  • 34 views

I’m needing to create a widget for a wordpress page…

https://help.practicebetter.io/hc/en-us/articles/360053151671-Adding-My-Booking-Widget-to-WordPress

The problem is my page is an elementor page and not a standard wordpress page. What I would like to do is use the custom code mentioned in the article in the creation of a elementor widget or something like it. Any ideas?

icon

Best answer by Robertson Vendramin 22 November 2021, 21:18

View original

6 replies

Userlevel 2
Badge +3

The “Head & Footer Code” plugin described in the article you linked should work even with elementor. Did you try it already?

 

Harry

I installed the plugin and tried it but it put a box with content at the top of every page, above the header bar, so I had to delete that. I’m no advanced user so I’m not sure how to control it since we want this for specific areas of specific pages and not all. The idea is to have widgets, links, or buttons for each service on the service page. That way when a person clicks the selected service it will land them on the purchase page in Practice Better.

Userlevel 6
Badge +3

you can use custom code, wihout plugins using wordpress hooks,
you can use it with plugins,  like directly insrt php code
you can insrt html code using elementor html code widget. its just html
 

Currently I have a button on my page which it would be ideal to update with some kind of dynamic tag or something with code like what I attached inside it so that a popup occurs when the button is pushed which displays this (the attached info). Is that possible?

Userlevel 3
Badge +1

Elementor itself allows you to insert these custom codes, through the following path: Elementor -> Custom Code. My interface is in Portuguese, so forgive me.

 

 

After you click on this option it asks where you want to place your code, head, body start and body end.    

 

When you publish it asks which pages you want this code to be present on.

 

 

Thanks for the detailed explanation. I will try this out though it appears to not be very controllable 

Reply