Title: Using renderButtonsWithContainer()
Last modified: July 23, 2022

---

# Using renderButtonsWithContainer()

 *  Resolved [georgcantor](https://wordpress.org/support/users/georgcantor/)
 * (@georgcantor)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-renderbuttonswithcontainer/)
 * Hello,
 * I’m using WordPress’s plugin Snippets to add the renderButtonsWithContainer().
   It works fine. But, I would like to show the buttons in a grid view. I know how
   to do it using the shortcode ( [nextend_social_login style=”grid”] ).
 * How can I do the same in PHP? Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Ramona](https://wordpress.org/support/users/nextend_ramona/)
 * (@nextend_ramona)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-renderbuttonswithcontainer/#post-15853328)
 * Hi [@georgcantor](https://wordpress.org/support/users/georgcantor/)
 * Try giving ‘grid’ as the first parameter of the `renderButtonsWithContainer` 
   function, like so:
 *     ```
       <?php
           if(class_exists('NextendSocialLogin', false)){
               echo NextendSocialLogin::renderButtonsWithContainer('grid');
           }
       ?>
       ```
   
 *  Thread Starter [georgcantor](https://wordpress.org/support/users/georgcantor/)
 * (@georgcantor)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-renderbuttonswithcontainer/#post-15853801)
 * Thanks! Works like a charm. Can I also input the colors of the buttons or do 
   I need to change that in CSS?
 *  [Ramona](https://wordpress.org/support/users/nextend_ramona/)
 * (@nextend_ramona)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-renderbuttonswithcontainer/#post-15856384)
 * Hi [@georgcantor](https://wordpress.org/support/users/georgcantor/)
 * We don’t have option to chnage the button colors, and I wouldn’t really suggest
   trying to change them either, as some providers, like Google and Facebook have
   very specific branding guidelines:
    – Facebook: [https://developers.facebook.com/docs/facebook-login/userexperience/#buttondesign](https://developers.facebook.com/docs/facebook-login/userexperience/#buttondesign)–
   Google: [https://developers.google.com/identity/branding-guidelines](https://developers.google.com/identity/branding-guidelines)
 * If your button doesn’t meet these, if either Google or Facebook would need to
   review your app for any reason, the review would fail because the button doesn’t
   match their guideline. A failed app review can cause the app to be shut down 
   until the issue gets fixed.
 * So I’d rather recommend using our buttons that match their guidelines.
 *  Thread Starter [georgcantor](https://wordpress.org/support/users/georgcantor/)
 * (@georgcantor)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-renderbuttonswithcontainer/#post-15859560)
 * Thanks!
 * Is there an option to pick the styling and color of the buttons with one of the
   predefined options with each implementation using the shortcode?
 *  Plugin Support [Gabor](https://wordpress.org/support/users/nextendweb_gabor/)
 * (@nextendweb_gabor)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-renderbuttonswithcontainer/#post-15859680)
 * Hi [@georgcantor](https://wordpress.org/support/users/georgcantor/)!
 * You can see all shortcode options here:
    [https://nextendweb.com/nextend-social-login-docs/theme-developer/#shortcode](https://nextendweb.com/nextend-social-login-docs/theme-developer/#shortcode)
   so with the “style” attribute you can choose to display your buttons either with
   their default layout or as icons. But we don’t have an option to change the colors.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Using renderButtonsWithContainer()’ is closed to new replies.

 * ![](https://ps.w.org/nextend-facebook-connect/assets/icon.svg?rev=3336394)
 * [Nextend Social Login and Register](https://wordpress.org/plugins/nextend-facebook-connect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextend-facebook-connect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextend-facebook-connect/)
 * [Active Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextend-facebook-connect/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Gabor](https://wordpress.org/support/users/nextendweb_gabor/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/using-renderbuttonswithcontainer/#post-15859680)
 * Status: resolved