[wp-trac] [WordPress Trac] #63251: Twenty Fourteen: implement slider feature with CSS carousel

WordPress Trac noreply at wordpress.org
Tue Apr 8 19:41:32 UTC 2025


#63251: Twenty Fourteen: implement slider feature with CSS carousel
---------------------------+-----------------------------
 Reporter:  swissspidy     |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  performance
---------------------------+-----------------------------

Comment (by sabernhardt):

 As Twenty Fourteen is a classic theme, child themes (and/or plugins) can
 replace templates, CSS and scripts.

 I doubt this is complete, but I can think of some adjustments to account
 for child themes:
 1. The script probably should check for the existence of `data-`
 attributes from each template, in addition to the `.slider` class and CSS
 support.
 2. The new CSS could use `wp_add_inline_style()` because a child theme
 would replace `style.css` by default. (Enqueuing the parent stylesheet is
 recommended, not required.)

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


More information about the wp-trac mailing list