I added the code above to my child functions.php. Looking at the page in Firefox with “Entire Cache Disabled” and “Check for Newer Version of Page Every Time”–and multiple refreshes–fonts not available on my system still in evidence.
Testing the site so modified at gtmetrix.com, same font calls show up in Timeline.
I conjecture your theory is that the child functions.php is “read” before the parent functions.php is enacted–so that code in the child cancels code in the parent, before any call is made. ???
I read in the codex (under Child Themes),
“Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent. Instead, it is loaded in addition to the parent’s functions.php. (Specifically, it is loaded right before the parent’s file.)”
Which would seem to make the parent functions.php cancel anything conflicting with it in the child functions.php.
I read farther along,
“TIP FOR THEME DEVELOPERS. The fact that a child theme’s functions.php is loaded first means that you can make the user functions of your theme pluggable —that is, replaceable by a child theme— by declaring them conditionally. E.g.:” [gives example code using if function exists] “In that way, a child theme can replace a PHP function of the parent by simply declaring it beforehand.”
And I see that the parent functions.php does not include this conditional language concerning the font calls. In fact, in a rather long functions.php file, “exists” appears only once.
Maybe this makes this particular theme a poor choice as a parent theme, for my purposes? (Can it be true that anything in a parent theme’s functions.php file that does not include conditional language cannot be overridden in the child functions.php?)
Or have I misunderstood something here?
Or does the code just need some small tweek? (I can write simple php code, but find WordPress php byzantine and unpredictable, difficult even to modify.)