[wp-trac] [WordPress Trac] #42847: Twenty Seventeen: Social Menu creates code bloat

WordPress Trac noreply at wordpress.org
Mon Jun 19 18:07:52 UTC 2023


#42847: Twenty Seventeen: Social Menu creates code bloat
-------------------------------+------------------------------
 Reporter:  madriverweb        |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Bundled Theme      |     Version:  4.8.3
 Severity:  normal             |  Resolution:
 Keywords:  close 2nd-opinion  |     Focuses:
-------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => close 2nd-opinion
 * type:  defect (bug) => enhancement


Comment:

 The collection of SVGs is quite large for many sites, but this is not a
 bug.

 A [https://wordpress.org/support/topic/how-to-prevent-loading-code-for-
 svg-icons/ support topic] shares code to try in a child theme. (If you
 copy it from the page, replace the curvy quotes with straight single
 quotes.)

 Sites that do not include a social menu still would need at least some of
 these icons:

 - 'arrow-left' (several places)
 - 'arrow-right' (several places)
 - 'search' (in 404 template, search widgets)
 - 'bars' (mobile navigation toggle button)
 - 'close' (mobile navigation toggle button)
 - 'angle-down' (navigation dropdown menus)
 - 'folder-open' (categories list)
 - 'hashtag' (tags list)
 - 'mail-reply' (comments reply)
 - 'thumb-tack' (sticky posts)
 - 'play' (video background)
 - 'pause' (video background)
 - 'quote-right' (posts with quote format)

 I recommend leaving this as it is now.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/42847#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list