{"id":26114,"date":"2022-09-26T10:46:07","date_gmt":"2022-09-26T14:46:07","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=26114"},"modified":"2022-09-26T10:52:43","modified_gmt":"2022-09-26T14:52:43","slug":"how-to-customize-magento-2-social-login-buttons-design-on-specific-forms","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design","title":{"rendered":"How to Customize Magento 2 Social Login Buttons Design on Specific Forms"},"content":{"rendered":"\n<p>The <a href=\"\/magento-social-login-pro\">Magneto 2 Social Login Pro<\/a> extension provides the ability to select a default design for social login buttons. However, it changes the design on all forms at once. This article describes how to change the design of social login buttons for a specific form only, without changing the default setting for other forms.<\/p>\n\n\n\n<h2 id=\"h-setting-custom-design-for-social-login-buttons-on-a-specific-form\">Setting Custom Design for Social Login Buttons on a Specific Form<\/h2>\n\n\n\n<p>The Social Login Pro extension provides a <code>custom_design<\/code> parameter in the <code>\\Plumrocket\\SocialLoginPro\\Block\\Buttons<\/code> block in version 4.0.4 and later. We recommend changing it using layout:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-markup\">&lt;referenceBlock name=\"social_buttons_block_name\">\n        &lt;arguments>\n                &lt;argument name=\"custom_design\" xsi:type=\"string\">square&lt;\/argument>\n        &lt;\/arguments>\n&lt;\/referenceBlock><\/code><\/pre><\/div>\n\n\n\n<p>The <code>custom_design<\/code> argument takes one of the following values: <em>default<\/em>, <em>square<\/em>, <em>round<\/em>.<\/p>\n\n\n\n<h3 id=\"h-example-changing-social-login-buttons-design-on-the-login-page\">Example: Changing Social Login Buttons Design On the Login Page<\/h3>\n\n\n\n<p>To customize the buttons on the login page, you will need to customize the <code>customer_account_login.xml<\/code> layout. Please use the official guide on <a href=\"https:\/\/developer.adobe.com\/commerce\/frontend-core\/guide\/layouts\/extend\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">how to customize layouts<\/a> and do the following customizations on the layout xml:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div class=\"prism-title\">customer_account_login.xml<\/div><pre><code class=\"language-markup\">&lt;referenceBlock name=\"pslogin.customer.form.login.buttons\">\n        &lt;arguments>\n                &lt;argument name=\"custom_design\" xsi:type=\"string\">square&lt;\/argument>\n        &lt;\/arguments>\n&lt;\/referenceBlock><\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Magneto 2 Social Login Pro extension provides the ability to select a default design for social login buttons. However, it changes the design on all forms at once. This article describes how to change the design of social login buttons for a specific form only, without changing the default setting for other forms. Setting &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Customize Magento 2 Social Login Buttons Design on Specific Forms&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[360],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Customize Magento 2 Social Login Buttons Design on Specific Forms - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"The Magneto 2 Social Login Pro extension provides the ability to select a default design for social login buttons. However, it changes the design on all\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Customize Magento 2 Social Login Buttons Design on Specific Forms\" \/>\n<meta property=\"og:description\" content=\"The Magneto 2 Social Login Pro extension provides the ability to select a default design for social login buttons. However, it changes the design on all\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-26T14:46:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-26T14:52:43+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin Docs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Customize Magento 2 Social Login Buttons Design on Specific Forms - Plumrocket Documentation","description":"The Magneto 2 Social Login Pro extension provides the ability to select a default design for social login buttons. However, it changes the design on all","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:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design","og_locale":"en_US","og_type":"article","og_title":"How to Customize Magento 2 Social Login Buttons Design on Specific Forms","og_description":"The Magneto 2 Social Login Pro extension provides the ability to select a default design for social login buttons. However, it changes the design on all","og_url":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design","og_site_name":"Plumrocket Documentation","article_published_time":"2022-09-26T14:46:07+00:00","article_modified_time":"2022-09-26T14:52:43+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin Docs","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design","name":"How to Customize Magento 2 Social Login Buttons Design on Specific Forms - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2022-09-26T14:46:07+00:00","dateModified":"2022-09-26T14:52:43+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/015cbe7d3eb39051359cab3a634456a2"},"description":"The Magneto 2 Social Login Pro extension provides the ability to select a default design for social login buttons. However, it changes the design on all","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide\/custom-design#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 Social Login Pro","item":"https:\/\/plumrocket.com\/magento-social-login-pro"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro"},{"@type":"ListItem","position":4,"name":"v4","item":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4"},{"@type":"ListItem","position":5,"name":"Developer Guide","item":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v4\/devguide"},{"@type":"ListItem","position":6,"name":"How to Customize Magento 2 Social Login Buttons Design on Specific Forms"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/015cbe7d3eb39051359cab3a634456a2","name":"Admin Docs","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/51791b4b0fb12be6e5bced98930993ed?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/51791b4b0fb12be6e5bced98930993ed?s=96&d=mm&r=g","caption":"Admin Docs"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26114"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=26114"}],"version-history":[{"count":13,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26114\/revisions"}],"predecessor-version":[{"id":26133,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26114\/revisions\/26133"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=26114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=26114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=26114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}