WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Twitter/facebook widget dynamic width (8 posts)

  1. ralphonz
    Member
    Posted 4 months ago #

    Hi,

    Is it possible to set the twitter widget with to a percentage for a responsive design? Same goes for the Facebook widget.

    https://wordpress.org/plugins/jetpack/

  2. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 4 months ago #

    Hi Ralph,

    Have you tried doing so in your site's CSS? What was the result?

  3. ralphonz
    Member
    Posted 4 months ago #

    The problem is that a fixed width is injected into the style attribute of the html so can't be overridden with the themes css.

    The width is set in the widget itself in px only. Maybe a drop down could change it from px to % as this is a real problem for a responsive layout

  4. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 4 months ago #

    I suggest you open a github issue for this here, then:

    https://github.com/Automattic/jetpack/issues/new

    If you'd rather I do it myself, let me know. You could even submit a Pull Request yourself, if you'd like:

    http://jetpack.me/contribute/

  5. ralphonz
    Member
    Posted 4 months ago #

  6. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 3 months ago #

    As you saw there, it was closed as invalid because Facebook actually requires the width be in px; sorry!

  7. ralphonz
    Member
    Posted 3 months ago #

    Should I do another one for the twitter widget then? That at least could be dynamic width?

  8. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 3 months ago #

    There already is an open issue for it here:

    https://github.com/Automattic/jetpack/issues/210

Reply

You must log in to post.

About this Plugin

About this Topic