admin管理员组文章数量:1277886
This image shows the Additional CSS feature in Wordpress. I'm trying to find the file that stores the additional CSS, but can't seem to find it anywhere - I've searched almost every folder in wp-content!
Does anyone know how Additional CSS for the theme is stored and, if it is in a file, where this file is located!
This image shows the Additional CSS feature in Wordpress. I'm trying to find the file that stores the additional CSS, but can't seem to find it anywhere - I've searched almost every folder in wp-content!
Does anyone know how Additional CSS for the theme is stored and, if it is in a file, where this file is located!
Share Improve this question edited Jan 10, 2018 at 11:30 Yahya Hussein 1196 bronze badges asked Feb 28, 2017 at 6:53 H BellamyH Bellamy 4231 gold badge4 silver badges6 bronze badges 1- The best idea is keep it in separate file on the server. Than you can edite and make any changes quickly. – Philipmcnill Commented Oct 9, 2021 at 1:40
2 Answers
Reset to default 41It's stored in the database, within the wp_posts
table, under the custom_css
post type, where the post name is the theme slug. There you also have the related customize_changeset
and revision
post types.
The custom css post ID is also stored in the wp_options
table under each theme mods, e.g. theme_mods_twentysixteen
for Twenty Sixteen.
It's informative to check out how the custom CSS fetched from the database with:
wp_get_custom_css()
that useswp_get_custom_css_post()
and displayed through the wp_head
action with:
wp_custom_css_cb()
type this into the sql query if your new like me, and it should come up.
SELECT * FROM wp_posts
WHERE post_type
= 'custom_css'
本文标签: customizationWhere are Additional CSS files stored
版权声明:本文标题:customization - Where are Additional CSS files stored 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741279436a2369920.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论