Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 4 months ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

Submenu icons (iconSweets) broken when WP not installed at site root

  • This topic has 1 reply, 2 voices, and was last updated 7 years, 5 months ago by Ray.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 13, 2017 at 3:42 pm #6410
    Chris Maden
    Participant

    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.

    November 16, 2017 at 5:51 pm #6412
    Ray
    Keymaster

    Hi Chris,

    Thanks for the report.

    It looks like the same issue as this one:
    https://github.com/cuny-academic-commons/cbox-theme/issues/159

    Hopefully, we can put together a fix for the next maintenance release.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register