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, 2 weeks 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.

Header Image Big in Mobile

  • This topic has 4 replies, 2 voices, and was last updated 3 years, 7 months ago by Scott Voth.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • October 18, 2021 at 1:02 pm #9061
    Greg Acuna
    Participant

    My website http://www.planetearthlings.org looks good on mobile…EXCEPT…the header image is big to the point that it hangs out and creates a big background area going down each page. It is also possible to swipe left/right and it bounces around sideways instead of just scrolling up and down. Any suggestions on how I fix this? Thanks!

    October 22, 2021 at 12:58 pm #9068
    Scott Voth
    Keymaster

    Hi Greg – Sorry for the late response. For your header image issue, the image is spilling over into the left background. I think that is why it is not minimizing correctly on mobile devices. I see this CSS:

    div#icext-16f6e2e3 a, h1#icext-16f6e2e3 a {
    top: 15px;
    width: 512px;
    height: 92px;
    position: absolute;
    left: 50%;
    margin-left: -256px;
    }

    If you remove the negative margin-left, it looks a lot better on mobile

    You could also use some conditional CSS that would apply just to the mobile state. Something like this:

    @media only screen and (max-width: 600px) {

    div#icext-16f6e2e3 a, h1#icext-16f6e2e3 a {
    top: 15px;
    width: 512px;
    height: 92px;
    position: absolute;
    left: 50%;
    margin-left: 0px;
    }

    }

    And play around with the CSS attributes until it looks good. This would retain your original design for non-mobile displays.

    CBOX does not provide swiping functionality, but I did see this article that might help you out. https://css-tricks.com/simple-swipe-with-vanilla-javascript/

    There is also a plugin that lets you swipe through members – https://wordpress.org/plugins/bp-member-swipe/

     

     

     

    October 23, 2021 at 2:52 pm #9069
    Greg Acuna
    Participant

    Hey Scott…thanks for getting back to me. I’m not a web techie. Could you tell me which CSS file I should be looking for? I’ve checked the CSS both in the main CBox and I’m not seeing the lines you mentioned. Really appreciate your help.  Cheers, Greg

    October 24, 2021 at 3:31 pm #9070
    Scott Voth
    Keymaster

    Hi Greg – when you log in to your site, your should see the “Customize” option on the top toolbar. If you don’t see it there, go to Appearance>>Customize on your dashboard.

    In Customize, the last option is “Custom CSS.” Here you can override the CSS settings on your site.

    Try adding either of the snippets that I provided above.

    October 24, 2021 at 3:34 pm #9071
    Scott Voth
    Keymaster

    In either snippet, make sure to set margin-left: 0px;

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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