admin管理员组文章数量:1328796
When we customise the page in WordPress, it shows Additional CSS option in left panel, Customizer settings are saved by hitting the ‘Save & Publish’ button. This also saves our custom CSS added in the Additional CSS section, This custom added CSS is placed in the HTML head section on the frontend so that the changes can be applied to the frontend. (Can be checked by viewing the source code from the frontend.)
My task is,
To save this CSS in a file in the upload folder dynamically Render the custom CSS from the file. (that was just generated dynamically in 1st step above.) Remove it from the HTML head section. Otherwise, the custom CSS will be rendered twice. please can anyone suggest some code to perform this? Thanks
本文标签: phpTrying to generate a CSS file in wordpress uploads folder
版权声明:本文标题:php - Trying to generate a CSS file in wordpress uploads folder 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742257224a2441849.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论