WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. ralphonz
    Member
    Posted 2 years 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 Contributor

    Posted 2 years ago #

    Hi Ralph,

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

  3. ralphonz
    Member
    Posted 2 years 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 Contributor

    Posted 2 years 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 2 years ago #

  6. Richard Archambault
    Happiness Engineer
    Plugin Contributor

    Posted 2 years ago #

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

  7. ralphonz
    Member
    Posted 2 years ago #

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

  8. Richard Archambault
    Happiness Engineer
    Plugin Contributor

    Posted 2 years 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