We have two CBOX instances; one, our sandbox/staging site is at sandbox.site.edu/; the other, our production site, is at production.site.edu/cbox/.
The menu icons work fine in the sandbox, but in production, they show up as unstyled characters (0, L, etc.). Those characters are supposed to have the iconSweets font applied, but it isn’t loaded in production.
The root of the problem seems to be in dynamic.css. On the sandbox, it loads the font as:
@font-face {
font-family: 'iconSweetsRegular';
src: url('/wp-content/themes/cbox-theme/assets/fonts/iconsweets-webfont.eot');
src: url('/wp-content/themes/cbox-theme/assets/fonts/iconsweets-webfont.eot?#iefix') format('embedded-opentype'),
url('/wp-content/themes/cbox-theme/assets/fonts/iconsweets-webfont.woff') format('woff'),
url('/wp-content/themes/cbox-theme/assets/fonts/iconsweets-webfont.ttf') format('truetype'),
url('/wp-content/themes/cbox-theme/assets/fonts/iconsweets-webfont.svg#iconSweetsRegular') format('svg');
font-weight: normal;
font-style: normal;
}
but in the producton site, that same section looks like this:
@font-face {
font-family: 'iconSweetsRegular';
src: url('press/wp-content/themes/cbox-theme/assets/fonts/iconsweets-webfont.eot');
src: url('press/wp-content/themes/cbox-theme/assets/fonts/iconsweets-webfont.eot?#iefix') format('embedded-opentype'),
url('press/wp-content/themes/cbox-theme/assets/fonts/iconsweets-webfont.woff') format('woff'),
url('press/wp-content/themes/cbox-theme/assets/fonts/iconsweets-webfont.ttf') format('truetype'),
url('press/wp-content/themes/cbox-theme/assets/fonts/iconsweets-webfont.svg#iconSweetsRegular') format('svg');
font-weight: normal;
font-style: normal;
}
Note that each URL starts with “press/” instead of just “/”, or “/cbox/” as it should. Editing the stylesheet has fixed the problem, but this seems like a bug in installing the theme. For both sites, the CBOX plugin was installed through the WP dashboard; the sub-plugins installed through the CBOX dashboard, and the CBOX theme also installed through the CBOX dashboard.