Title: how to put  in php code?
Last modified: September 1, 2016

---

# how to put in php code?

 *  [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/)
 * hi. i have some social login buttons,
    and i put them under the comments area,
   so if anybody is not logged in, they can simply click to get logged in from a
   social acc and post comments. but the buttons are not looking so good. so i decided
   to adjust them, and put some alignment on them. but i keep getting eror. (note:
   i dont want to do it through styles.css) how can i make it right?
 * this is the code:
 *     ```
       <?php do_action('brilliant_social_login');
       <div style="height:150px !important;" </div> ?>
       ```
   
 * thanks for any help.

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/#post-7498820)
 * the right way is to do it through a CSS file and not inline. Why do you not want
   to use a CSS file?
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/#post-7498825)
 * [@sterndata](https://wordpress.org/support/users/sterndata/)
    hi, and many thanks
   for your notice and help. i used a css file (style.css) and put a general css
   for it. but now in the comment erea i want to change that css, only for this 
   section (comment section i mean) so i just to need put a height adjustment for
   it, inline.
 * i’ve also tried this:
 *     ```
       <?php
       echo "<div style ='height:150px !important'> <?php do_action('brilliant_social_login'); ?> </div>" ; ?>
       ```
   
 * no eror now, but nothing is showing.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/#post-7498830)
 * Please post a link to your site
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/#post-7498840)
 * i’ve done comment section with default css, but now i get error(not showing) 
   in the login erea. used the same code for login, but this section is not showing
   anymore(social login) (under the login button) 😐
    and i still dont know why.
   where am i doing it wrong? [http://www.poofy.ir/ورود](http://www.poofy.ir/ورود)
   here is the link. you can see.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/#post-7498863)
 * I get a 500 error trying to access that page.
 * Your PHP is incorrect
 * Change this
 *     ```
       <?php
       echo "<div style ='height:150px !important'> <?php do_action('brilliant_social_login'); ?> </div>" ; ?>
       ```
   
 * to this
 *     ```
       <div style ="height:150px !important;">
       <?php do_action('brilliant_social_login');  ?>
       </div>
       ```
   
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/#post-7498868)
 * oh. i’m truley sorry about the 500 error!
    yea! i was editing my custom login
   template, to somehow manage it. and for some minutes the login gets 500 eror.
   sry abt that. now it’s ok if you want to look. with no eror. thanks. i’ll try
   the code now, and tell you what happend. thanks again.
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/#post-7498875)
 * i put the code. and it’s not showing correctly.
    i have 6 social buttons. ok?
   i put the height in .css in 100px. and i used it for comments. you can simply
   see it here. buttttt when i put it in my login page. it’s still 100px and it 
   only shows 4 buttons… i want to add 50px more to it just for login page. so i
   can see those 2 other buttons.
 * an example of comment erea:
    [http://poofy.ir/%D8%A2%D9%85%D9%88%D8%B2%D8%B4/%D9%86%D9%88%D8%B4%DB%8C%D8%AF%D9%86%DB%8C-%D8%B3%D8%B1%D8%AF-%D9%85%D9%88%D9%87%DB%8C%D8%AA%D9%88/](http://poofy.ir/%D8%A2%D9%85%D9%88%D8%B2%D8%B4/%D9%86%D9%88%D8%B4%DB%8C%D8%AF%D9%86%DB%8C-%D8%B3%D8%B1%D8%AF-%D9%85%D9%88%D9%87%DB%8C%D8%AA%D9%88/)
 * and the login form:
    poofy.ir/ورود
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/#post-7498885)
 * what plugin are you using for this login? I think you should be asking them about
   how best to configure this.
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/#post-7498897)
 * ok then. i’ll ask them for this. thanks for your help.

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

 The topic ‘how to put in php code?’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [height](https://wordpress.org/support/topic-tag/height/)
 * [style](https://wordpress.org/support/topic-tag/style/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [Masoud](https://wordpress.org/support/users/masoud1111/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-put-in-php-code/#post-7498897)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
