WordPress.org

Forums

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

  1. ralphonz
    Member
    Posted 1 year 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 11 months ago #

    Hi Ralph,

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

  3. ralphonz
    Member
    Posted 11 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 11 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 11 months ago #

  6. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 11 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 11 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 11 months ago #

    There already is an open issue for it here:

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic