[{"data":1,"prerenderedAt":298},["ShallowReactive",2],{"\u002Fguide\u002Fwordpress":3},{"page":4,"pages":251},{"id":5,"title":6,"body":7,"description":241,"extension":242,"meta":243,"navigation":244,"order":245,"path":246,"placeholder":247,"seo":248,"stem":249,"__hash__":250},"guide\u002Fguide\u002Fwordpress.md","Connecting a WordPress site",{"type":8,"value":9,"toc":232},"minimark",[10,14,23,28,31,52,56,63,125,135,139,171,176,180,183,193,200,204,211,215,218,225],[11,12,13],"p",{},"The DoRoutes Booking plugin puts the whole booking form on a page of your WordPress site: the price, sign-in, accepting and signing a quote, and paying. You run everything else in DoRoutes as usual. The plugin needs WordPress 6.5 or later and PHP 8.1 or later.",[11,15,16,17,22],{},"On a site that isn't WordPress, paste a snippet instead: see ",[18,19,21],"a",{"href":20},"\u002Fguide\u002Fbook-on-any-website","Book on any website",".",[24,25,27],"h2",{"id":26},"_1-make-an-api-key-in-doroutes","1. Make an API key in DoRoutes",[11,29,30],{},"The plugin connects with an API key that can do one thing: connect a website.",[32,33,34,43,49],"ol",{},[35,36,37,38,42],"li",{},"In DoRoutes, open ",[39,40,41],"strong",{},"Settings → API keys",". Only the Owner sees it.",[35,44,45,46,22],{},"Create a key named after your site, and tick only ",[39,47,48],{},"Connect a website",[35,50,51],{},"Copy the key. You only see it once.",[24,53,55],{"id":54},"_2-fill-in-the-plugin","2. Fill in the plugin",[11,57,58,59,62],{},"Install and activate the DoRoutes Booking plugin, then open ",[39,60,61],{},"Settings → DoRoutes"," in WordPress:",[64,65,66,77,83,93,99],"ul",{},[35,67,68,71,72,76],{},[39,69,70],{},"Slug",": your firm's short name in DoRoutes, the part after ",[73,74,75],"code",{},"admin.doroutes.com\u002F"," when you're signed in.",[35,78,79,82],{},[39,80,81],{},"API key",": the key you copied. After saving, the field shows only the key's last four characters. Enter a new key to replace it.",[35,84,85,88,89,92],{},[39,86,87],{},"Website addresses",": each address your site is reached on, one per line, such as ",[73,90,91],{},"https:\u002F\u002Fwww.yourfirm.co.uk",". Your site's own address is filled in for you.",[35,94,95,98],{},[39,96,97],{},"Booking page",": the page that will hold the form.",[35,100,101,104,105,108,109,112,113,116,117,120,121,22],{},[39,102,103],{},"Colour",", ",[39,106,107],{},"Corner radius"," (0 to 24) and ",[39,110,111],{},"Font"," set the form's look. Tick ",[39,114,115],{},"Use the site's font"," to use your theme's font instead. ",[39,118,119],{},"Custom CSS"," styles the form further: see ",[18,122,124],{"href":123},"\u002Fguide\u002Fbook-on-any-website#styling-with-your-own-css","styling with your own CSS",[11,126,127,128,131,132,22],{},"Save. The plugin connects to DoRoutes and shows ",[39,129,130],{},"Connected",", or ",[39,133,134],{},"Waiting for proof",[24,136,138],{"id":137},"_3-prove-you-own-the-domain","3. Prove you own the domain",[11,140,141,142,145,146,149,150,153,154,157,158,161,162,165,166,170],{},"The first time, DoRoutes needs to know the domain is yours. The plugin shows a table with each ",[39,143,144],{},"Domain",", its ",[39,147,148],{},"TXT record"," and ",[39,151,152],{},"Value",". Add each record where your domain's DNS is managed, then wait for its ",[39,155,156],{},"Status"," to change to ",[39,159,160],{},"Found",", or choose ",[39,163,164],{},"Check now",". DoRoutes also checks by itself every 15 minutes for 7 days. ",[18,167,169],{"href":168},"\u002Fguide\u002Fbook-on-any-website#prove-you-own-your-website","Prove you own your website"," explains the record in full.",[11,172,173,174,22],{},"Once every domain is found, the plugin shows ",[39,175,130],{},[24,177,179],{"id":178},"_4-add-the-form-to-the-page","4. Add the form to the page",[11,181,182],{},"Edit your booking page and add the shortcode where the form should appear:",[184,185,191],"pre",{"className":186,"code":188,"language":189,"meta":190},[187],"language-text","[doroutes_booking]\n","text","",[73,192,188],{"__ignoreMap":190},[11,194,195,196,199],{},"In the block editor, use a ",[39,197,198],{},"Shortcode"," block. The form uses your WordPress privacy policy page for its privacy link.",[24,201,203],{"id":202},"recaptcha","reCAPTCHA",[11,205,206,207,210],{},"If you ask for reCAPTCHA on sign-in (",[39,208,209],{},"Settings → Sign-in"," in DoRoutes), add your website's domain to your reCAPTCHA key in Google's reCAPTCHA admin console, so customers can sign in from the form on your site.",[24,212,214],{"id":213},"changing-or-removing-the-connection","Changing or removing the connection",[11,216,217],{},"Save the plugin's settings again to change the addresses or the page. A new domain needs its own record before the change goes live; the current connection keeps working meanwhile.",[11,219,220,221,224],{},"Deactivating the plugin disconnects your site, and activating it again reconnects it. Deleting the plugin disconnects it and removes its settings. Revoking the API key in DoRoutes ends the connection too. You can also disconnect from ",[39,222,223],{},"Settings → Website → Address"," in DoRoutes.",[11,226,227,228,22],{},"While connected, customers' links from DoRoutes go to your booking page: see ",[18,229,231],{"href":230},"\u002Fguide\u002Fbook-on-any-website#what-connecting-changes","what connecting changes",{"title":190,"searchDepth":233,"depth":233,"links":234},2,[235,236,237,238,239,240],{"id":26,"depth":233,"text":27},{"id":54,"depth":233,"text":55},{"id":137,"depth":233,"text":138},{"id":178,"depth":233,"text":179},{"id":202,"depth":233,"text":203},{"id":213,"depth":233,"text":214},"Take bookings on your WordPress site with the DoRoutes Booking plugin.","md",{},true,13,"\u002Fguide\u002Fwordpress",false,{"title":6,"description":241},"guide\u002Fwordpress","Fk4zjlc2qX6nLQiNa_-Ak899XH84RH_MONpizkIRoSU",[252,254,258,262,266,270,274,278,282,286,290,291,294],{"path":20,"title":21,"order":253},12,{"path":255,"title":256,"order":257},"\u002Fguide\u002Fday-planning","Day planning",6,{"path":259,"title":260,"order":261},"\u002Fguide\u002Fgetting-started","Getting started",1,{"path":263,"title":264,"order":265},"\u002Fguide\u002Fimporting-records","Importing records",11,{"path":267,"title":268,"order":269},"\u002Fguide\u002Fjobs-and-the-diary","Jobs and the diary",5,{"path":271,"title":272,"order":273},"\u002Fguide\u002Flive-gps-and-tracking","Live GPS and tracking",8,{"path":275,"title":276,"order":277},"\u002Fguide\u002Fpayments-and-accounts","Payments and accounts",10,{"path":279,"title":280,"order":281},"\u002Fguide\u002Fquotes","Quotes",4,{"path":283,"title":284,"order":285},"\u002Fguide\u002Fthe-driver-app","The driver app",7,{"path":287,"title":288,"order":289},"\u002Fguide\u002Fvans-and-staff","Vans and staff",3,{"path":246,"title":6,"order":245},{"path":292,"title":293,"order":233},"\u002Fguide\u002Fyour-firm-and-settings","Your firm and settings",{"path":295,"title":296,"order":297},"\u002Fguide\u002Fyour-website","Your website",9,1793711177487]