Commit graph

22 commits

Author SHA1 Message Date
Ben Dwyer
839d682f5d
Merge pull request #3309 from Automattic/add/seedlet/extensibility-3134
Add filter to change bundled google fonts in assorted themes.
2021-05-05 18:58:34 +01:00
Jason Crist
21c847ec5b Add Experimental Link color support to Hever 2021-02-25 08:38:36 +00:00
George Stephanis
8347656eb8 Add filter to change bundled google fonts.
Initially intended as a part-fix for #3134 to enable child themes to swap typefaces that get included more easily, this also extends that change across to many themes using the common patterns.

It explicitly does not change the following themes:

Spearhead (uses different endpoint and method)

And the following themes that have multiple functions that generate typeface includes so as to avoid confusion:

* canard
* gazette
* illustratr
* publication
2021-02-18 10:20:38 -05:00
Ben Dwyer
5a410e23c4 All Themes: Fix whitespace in functions.php 2021-02-18 10:17:16 +00:00
Maggie Cabrera
825747be9f hever refactor 2021-02-10 12:54:18 +00:00
Ben Dwyer
57e9c4f7a5 fix a warning in hever 2021-02-05 10:56:24 +00:00
Maggie Cabrera
b62c7fa865 fixed conflict 2021-01-29 17:22:46 +00:00
Maggie Cabrera
aadbe38385 css variable approach to color annotations 2021-01-29 17:22:46 +00:00
Maggie Cabrera
83441c95ef renamed slugs for color palette on editor 2021-01-29 17:22:46 +00:00
Maggie Cabrera
a2fb202b0d css variable approach to color annotations 2021-01-29 17:22:45 +00:00
Enej Bajgoric
ca1ba9919f Simplify: Refactor functions to just include one function that adds the 3 required filters/actions 2020-12-17 11:36:48 +01:00
Enej Bajgoric
ecec58072b Move functions to after theme setup call 2020-12-17 11:36:47 +01:00
Enej Bajgoric
11cbcc675b Move functions to Varia add customizer control 2020-12-17 11:36:47 +01:00
Enej Bajgoric
626ba8c1b6 Updates to take into accout the theme switch. 2020-12-17 11:36:47 +01:00
Enej Bajgoric
7fa2ec4ff3 Include the varia_mobile_nav_on_side function in all the themes.
This makes sure that the user will not get a PHP warning if theu are not running the latest version of varia that has that function.
Since varia doesn't have that feature enabled this PR removes the function as well.
2020-12-17 11:36:47 +01:00
Enej Bajgoric
068e10dc9a Update the Hever theme to have the mobile nav on the side. 2020-12-17 11:36:47 +01:00
Joseph Scott
590cc5fde3
Use display=swap for Google Fonts
Using `display=swap` allows text to show up right away while waiting for the font to load, then swaps once it is finished.

You can see the type of difference this can make: https://www.webpagetest.org/video/compare.php?tests=200708_64_a5c3e57fdad44be3f5e98a618c78aca6%2C200708_7Y_27106d14550289c4ccc296ee0d819bbd&thumbSize=200&ival=100&end=visual
2020-07-08 14:48:50 -06:00
Sérgio Gomes
3d1af6c790
Fix incorrect font name
Using a `+` instead of a space here will cause the font name to be doubly encoded (as `PT%2BSans`), resulting in an error 400 when loading from Google Fonts.

@josephscott kindly validated the fix by testing on his sandbox.
2020-04-24 16:56:52 +01:00
Thomas Guillot
04f46cd956 Hever: Increase priority of hever_setup() 2019-08-01 12:06:04 +01:00
Thomas Guillot
798c27075a Hever: Update editor font sizes 2019-08-01 09:58:36 +01:00
Thomas Guillot
4546c76682 Hever: Add new background colours 2019-07-31 09:38:15 +01:00
Thomas Guillot
78cede9cae Hever (WIP): Basic import of the theme 2019-07-26 17:15:18 +01:00