[wp-trac] [WordPress Trac] #39481: allowing google fonts in childs of the 'twenty seventeen' theme

WordPress Trac noreply at wordpress.org
Thu Jan 5 13:28:32 UTC 2017


#39481: allowing google fonts in childs of the 'twenty seventeen' theme
---------------------------+-----------------------------
 Reporter:  tsvikas        |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 In the latest version of WordPress:
 If I try to redeclare `twentyseventeen_fonts_url()` in my child theme, in
 order to add more fonts to it, I cannot.
 (In twenty sixteen it was possible)

 it can be easily fixed by adding to the original theme's `functions.php`
 file:

 {{{
 if ( !function_exists( 'twentyseventeen_fonts_url' ) ):
 }}}
 before the function `twentyseventeen_fonts_url()`, and
 {{{
 endif;
 }}}
 after.

 (similar code is used in the 'twenty sixteen' theme)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39481>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list