WordPress.org

Ready to get started?Download WordPress

Forums

Google Language Translator
[resolved] CSS inline in PHP (3 posts)

  1. Den999
    Inactive
    Posted 11 months ago #

    Hey, author.

    This is:

    #flags { text-align:right; width:150px; float:right; clear:right; }

    inside in PHP is very bad idea! U understand, I think? CSS inside PHP is BAD for change width, for example, to 200px. Next upgrade will remove this and put again 150px.

    http://wordpress.org/plugins/google-language-translator/

  2. Rob Myrick
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Den999, thanks for your post. Yes, considering that there is currently no option to change the width of the flags container, I can see how you arrive at that conclusion (and I will take that suggestion for adding the option in a future update). But I don't believe this is related to the fact that I would use PHP and CSS together.

    You could override the #flags width by placing this in your current style sheet:

    #flags {
      width:200px !important;
    }

    Then it will remain there even after plugin updates and it should override styles in the plugin. Hopefully I am understanding this correctly. Let me know if that helps.

  3. Den999
    Inactive
    Posted 11 months ago #

    Thanks for answer and for solution!

Reply

You must log in to post.

About this Plugin

About this Topic