Skip to content
Logo
  • Support
  • My account
  • My cart
  • Magento 2 Extensions
  • Magento 1 Extensions
  • Magento Services
  • Packages
  • Special Offers
  • Blog
  • Contact Us

Home Magento 2 Extensions Magento 2 Social Login Pro Documentation v4 Developer Guide How to Customize Magento 2 Social Login Buttons Design on Specific Forms

    • Installation
    • Updating
    • Configuration
    • Integrations
    • How-To Guides
    • Troubleshooting
      • Adding Social Buttons Manually
      • Setting Custom Location for User Profile Photo
      • Adding Custom HTML
      • Setting Custom Design for Social Login Buttons On a Specific Form
      • Adding customer photo in the header in Hyvä
      Developer Guide & API Reference
    • Translation
    • Uninstalling
    Magento 2 Social Login Pro - Documentation

How to Customize Magento 2 Social Login Buttons Design on Specific Forms

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 Custom Design for Social Login Buttons on a Specific Form

The Social Login Pro extension provides a custom_design parameter in the \Plumrocket\SocialLoginPro\Block\Buttons block in version 4.0.4 and later. We recommend changing it using layout:

<referenceBlock name="social_buttons_block_name">
        <arguments>
                <argument name="custom_design" xsi:type="string">square</argument>
        </arguments>
</referenceBlock>

The custom_design argument takes one of the following values: default, square, round.

Example: Changing Social Login Buttons Design On the Login Page

To customize the buttons on the login page, you will need to customize the customer_account_login.xml layout. Please use the official guide on how to customize layouts and do the following customizations on the layout xml:

customer_account_login.xml
<referenceBlock name="pslogin.customer.form.login.buttons">
        <arguments>
                <argument name="custom_design" xsi:type="string">square</argument>
        </arguments>
</referenceBlock>
Was this article helpful?
09/26/202209/26/2022
Search
Search
Generic selectors
Exact matches only
Search in title
Search in content
Contents
Company
  • Home
  • About Plumrocket Inc.
  • Customer Stories
  • Programs & Promotions
  • Careers
  • Contact Us
Legal
  • Terms of Service
  • Privacy Policy
  • Refund Policy
  • Cookie Policy
  • Privacy Center
  • Updates & Support Policy
Resources
  • Blog
  • FAQ
  • Documentation
  • Tutorials
Partners
  • Partner Program
  • Affiliate Program
  • Official Partners
Plumrocket Inc. © 2008 - 2025
Follow Us:
  • Facebook
  • Twitter
  • LinkedIn
  • YouTube