• 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)

    (@sterndata)

    Volunteer Forum Moderator

    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

    (@masoud1111)

    @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)

    (@sterndata)

    Volunteer Forum Moderator

    Please post a link to your site

    Thread Starter Masoud

    (@masoud1111)

    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/ورود
    here is the link. you can see.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    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

    (@masoud1111)

    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

    (@masoud1111)

    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/

    and the login form:
    poofy.ir/ورود

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    what plugin are you using for this login? I think you should be asking them about how best to configure this.

    Thread Starter Masoud

    (@masoud1111)

    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.