{"id":562,"date":"2017-05-14T13:10:21","date_gmt":"2017-05-14T13:10:21","guid":{"rendered":"https:\/\/buddydev.com\/docs\/?p=562"},"modified":"2017-05-14T13:12:03","modified_gmt":"2017-05-14T13:12:03","slug":"using-wordpress-menu-link-buddypress-ajax-registration","status":"publish","type":"post","link":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/","title":{"rendered":"Using WordPress Menu link with BuddyPress Ajax Registration"},"content":{"rendered":"<p>Do you want to\u00a0use \u00a0WordPress custom menu link to trigger the ajax registration? If yes, this tutorial will help you.<\/p>\n<p>To enable the ajax registration on a link, <strong>we need to do either one of the two things<\/strong>:-<\/p>\n<ul>\n<li>Add a css class &#8216;bp-ajaxr&#8217; or &#8216;register&#8217; or &#8216;register-btn&#8217; to the link.<\/li>\n<li>Or add the class &#8220;bp-signup&#8221; to the link parent element.<\/li>\n<\/ul>\n<p>Doing any of the above two will make the link a trigger for opening registration modal boxes.<\/p>\n<h3>Using the custom menu Link as registration modal trigger:-<\/h3>\n<p>To do this, we will add &#8220;bp-signup&#8221; class to the links parent.<\/p>\n<p><strong>Step 1:- On the Menu Page, Click on the Screen option in the right corner of the page as shown below<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-564\" src=\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption.png\" alt=\"\" width=\"461\" height=\"157\" srcset=\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption.png 461w, https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption-300x102.png 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/p>\n<p><strong>Step 2 :- Enable the CSS classes option\u00a0for menu items from the available options list.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-567\" src=\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-custom-menu-enable-css-option.png\" alt=\"\" width=\"906\" height=\"303\" srcset=\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-custom-menu-enable-css-option.png 906w, https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-custom-menu-enable-css-option-300x100.png 300w, https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-custom-menu-enable-css-option-768x257.png 768w, https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-custom-menu-enable-css-option-480x161.png 480w\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" \/><\/p>\n<p><strong>Step 3:- Now, if you click on the menu item, you should see the css class option as below.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-566\" src=\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-custom-menu-item-css-class-option.png\" alt=\"\" width=\"590\" height=\"350\" srcset=\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-custom-menu-item-css-class-option.png 590w, https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-custom-menu-item-css-class-option-300x178.png 300w, https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-custom-menu-item-css-class-option-464x275.png 464w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/p>\n<p>You can add any arbitrary css class here. It will be applied on the link parents(normally li)<\/p>\n<p><strong>Step 4:- Add the &#8220;bp-signup&#8221; class to it and save.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-565\" src=\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-menu-item-bp-signup-class.png\" alt=\"\" width=\"590\" height=\"350\" srcset=\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-menu-item-bp-signup-class.png 590w, https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-menu-item-bp-signup-class-300x178.png 300w, https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-menu-item-bp-signup-class-464x275.png 464w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Save the menu and you are done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you want to\u00a0use \u00a0WordPress custom menu link to trigger the ajax registration? If yes, this tutorial will help you. To enable the ajax registration on a link, we need to do either one of the two things:- Add a css class &#8216;bp-ajaxr&#8217; or &#8216;register&#8217; or &#8216;register-btn&#8217; to the link. Or add the class &#8220;bp-signup&#8221; &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5372],"tags":[],"class_list":["clearfix","post-562","post","type-post","status-publish","format-standard","hentry","category-buddypress-ajax-registration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using WordPress Menu link with BuddyPress Ajax Registration &#8226; BuddyDev Help Center<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using WordPress Menu link with BuddyPress Ajax Registration &#8226; BuddyDev Help Center\" \/>\n<meta property=\"og:description\" content=\"Do you want to\u00a0use \u00a0WordPress custom menu link to trigger the ajax registration? If yes, this tutorial will help you. To enable the ajax registration on a link, we need to do either one of the two things:- Add a css class &#8216;bp-ajaxr&#8217; or &#8216;register&#8217; or &#8216;register-btn&#8217; to the link. Or add the class &#8220;bp-signup&#8221; ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/\" \/>\n<meta property=\"og:site_name\" content=\"BuddyDev Help Center\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-14T13:10:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-05-14T13:12:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption.png\" \/>\n<meta name=\"author\" content=\"Brajesh Singh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brajesh Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/\",\"url\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/\",\"name\":\"Using WordPress Menu link with BuddyPress Ajax Registration &#8226; BuddyDev Help Center\",\"isPartOf\":{\"@id\":\"https:\/\/buddydev.com\/docs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption.png\",\"datePublished\":\"2017-05-14T13:10:21+00:00\",\"dateModified\":\"2017-05-14T13:12:03+00:00\",\"author\":{\"@id\":\"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\"},\"breadcrumb\":{\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/#primaryimage\",\"url\":\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption.png\",\"contentUrl\":\"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption.png\",\"width\":461,\"height\":157},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/buddydev.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using WordPress Menu link with BuddyPress Ajax Registration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/buddydev.com\/docs\/#website\",\"url\":\"https:\/\/buddydev.com\/docs\/\",\"name\":\"BuddyDev Help Center\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/buddydev.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\",\"name\":\"Brajesh Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/buddydev.com\/docs\/#\/schema\/person\/image\/\",\"url\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"contentUrl\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"caption\":\"Brajesh Singh\"},\"sameAs\":[\"http:\/\/buddydev.com\/members\/sbrajesh\/\",\"https:\/\/x.com\/sbrajesh\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using WordPress Menu link with BuddyPress Ajax Registration &#8226; BuddyDev Help Center","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/","og_locale":"en_US","og_type":"article","og_title":"Using WordPress Menu link with BuddyPress Ajax Registration &#8226; BuddyDev Help Center","og_description":"Do you want to\u00a0use \u00a0WordPress custom menu link to trigger the ajax registration? If yes, this tutorial will help you. To enable the ajax registration on a link, we need to do either one of the two things:- Add a css class &#8216;bp-ajaxr&#8217; or &#8216;register&#8217; or &#8216;register-btn&#8217; to the link. Or add the class &#8220;bp-signup&#8221; ...","og_url":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/","og_site_name":"BuddyDev Help Center","article_published_time":"2017-05-14T13:10:21+00:00","article_modified_time":"2017-05-14T13:12:03+00:00","og_image":[{"url":"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption.png","type":"","width":"","height":""}],"author":"Brajesh Singh","twitter_misc":{"Written by":"Brajesh Singh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/","url":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/","name":"Using WordPress Menu link with BuddyPress Ajax Registration &#8226; BuddyDev Help Center","isPartOf":{"@id":"https:\/\/buddydev.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/#primaryimage"},"image":{"@id":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/#primaryimage"},"thumbnailUrl":"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption.png","datePublished":"2017-05-14T13:10:21+00:00","dateModified":"2017-05-14T13:12:03+00:00","author":{"@id":"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb"},"breadcrumb":{"@id":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/#primaryimage","url":"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption.png","contentUrl":"https:\/\/buddydev.com\/docs\/files\/2017\/05\/wordpress-screenoption.png","width":461,"height":157},{"@type":"BreadcrumbList","@id":"https:\/\/buddydev.com\/docs\/buddypress-ajax-registration\/using-wordpress-menu-link-buddypress-ajax-registration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/buddydev.com\/docs\/"},{"@type":"ListItem","position":2,"name":"Using WordPress Menu link with BuddyPress Ajax Registration"}]},{"@type":"WebSite","@id":"https:\/\/buddydev.com\/docs\/#website","url":"https:\/\/buddydev.com\/docs\/","name":"BuddyDev Help Center","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/buddydev.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb","name":"Brajesh Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buddydev.com\/docs\/#\/schema\/person\/image\/","url":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","contentUrl":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","caption":"Brajesh Singh"},"sameAs":["http:\/\/buddydev.com\/members\/sbrajesh\/","https:\/\/x.com\/sbrajesh"]}]}},"_links":{"self":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/comments?post=562"}],"version-history":[{"count":4,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/562\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/562\/revisions\/572"}],"wp:attachment":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/media?parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/categories?post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/tags?post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}