Automattic/jetpack

Add "adapt_container_width" to facebook likebox widget

Offen

#9.889 geöffnet am 10.07.2018

 (5 Kommentare) (0 Reaktionen) (1 zugewiesene Person)PHP (877 Forks)user submission
EnhancementGood For CommunityHacktoberfest[Feature] Extra Sidebar Widgets[Pri] Low

Repository-Metriken

Stars
 (1.808 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 4T 5h) (645 gemergte PRs in 30 T)

Beschreibung

Facebook allows you to lower the width of the widget and make it adaptive. Unfortunately, this can not be played using the jetpack widget

Steps to reproduce the issue

  1. Create facebook likebox widget
  2. Set width to "0"

What I expected

The widget adapts to the width of the container

<div class="fb-page" data-adapt-container-width="true">...</div>

What happened instead

The widget has a static minimum width

<div class="fb-page" width="180" data-adapt-container-width="false">...</div>

Contributor Guide