Stats: update look of dashboard widget#10958
Conversation
- Update get_jp_emblem to support displaying the full logotype. - Add logo to widget title. - Addd CSS to style new widget title.
It is now displayed on its own line, centered.
|
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: January 10, 2019. |
|
I can take care of this tomorrow, Jeremy! |
|
@jeherve either of these should work, though I prefer the first one. P.S.: we really should get rid of styles that target ID and favor classes instead. |
|
@jeherve Thank you! |
|
Hey @jeherve, can you please provide more clear testing instructions in your PR description? Also, I noticed that your solution placed the “View all stats” button in the wrong place with respect to my “After” design mockup in #10553. Would you be able move that button to below the “Top Posts” and “Top Searches” sections as in my mockup? |
My patch includes some SCSS changes, so you would need to run To fill in the widget with some traffic, I would recommend that you log out of your admin account on your sandbox (or visit your sandbox in an incognito window), visit several pages of your site while being logged out, and wait a few minutes. You should see the Stats widget get filled in with some data.
Good point, my bad. I fixed that in 247e504 Here is how the stats widget looks like now: |
* Add first version of the Changelog and testing list for 6.9 * Changelog: add #10710 * changelog: add #10538 * changelog: add #10741 * changelog: add #10749 * changelog: add #10664 * changelog: add #10224 * changelog: add #10788 * Changelog: add #10560 * Chanegelog: add #10812 * changelog: add #10556 * Changelog: add #10668 * Changelog: add #10846 * Changelog: add #10947 * Changelog: add #10962 * Changelog: add #10956 * Changelog: add #10940 * Changelog: add #10934 * Changelog: add #10912 * changelog: add #10866 * changelog: add #10924 * Changelog: add #10936 * Changelog: add #10833 * changelog: add #10867 * Changelog: add #10960 * Changelog: add #10888 * changelog: add #10840 * changelog: add #10972 * Changelog: add #10979 * changelog: add #10909 * Changelog: add #10958 * Changelog: add #10981 * Changelog: add #10564 * Changelog: add #10809 * Changelog: add #10982 * Changelog: add #10706 * Changelog: add #10978 * Changelog: add #10132 * Changelog: add #11022 * Changelog: add #11024 * Changelog: add #10875 * Changelog: add #11030 * Changelog: add #11053 * Changelog: add #10880 * Changelog: add #9359 * Changelog: add #11037 * Update block list * Changelog: add #11060 * Changelog: add #10755 * changelog: add #11000 * Changelog: add #10786 * Changelog: add #10945 * Changelog: add #10597
Fixes #11265 In #10958 I changed the widget title and included a SVG file in there, not thinking that the widget title was also displayed in the Screen Options tab. WordPress does not currently offer a filter allowing you to change the widget title in Screen Options but not inside the widgets, so I opted to hide that extra part of the widget title with CSS in the Screen Options tab.
Fixes #11265 In #10958 I changed the widget title and included a SVG file in there, not thinking that the widget title was also displayed in the Screen Options tab. WordPress does not currently offer a filter allowing you to change the widget title in Screen Options but not inside the widgets, so I opted to hide that extra part of the widget title with CSS in the Screen Options tab.


Changes proposed in this Pull Request:
Fixes #10553
This update updates the look of the Stats dashboard widget to be cleaner and Jetpack-branded.
Testing instructions:
Proposed changelog entry for your changes: