最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Load google font script based on optgroup label selected

programmeradmin3浏览0评论

Ive searched and can't find an answer. I have two groups of fonts - one regular fonts and one google fonts. Im using a select dropdown list with two optgroups, one for each group of fonts. What Im trying to accomplish is to load the script for google fonts on the front-end only if a font is selected under that optgroup label. Im able to get the value of the font-family selected in the option, but not the optgroup. I'll attach a screenshot of the dropdown in the admin area.

发布评论

评论列表(0)

  1. 暂无评论