Please help, I managed to get my sidebar to stop displaying on mobile and NOW IT’S HAPPENING AGAIN.
This CSS no longer works.
This CSS no longer hides my sidebar for mobile
@media(min-width: 980px){
body .x-sidebar.right {
margin-left: 21.536945%;
top: 140px;
position: fixed;
left: 50%;
}
}
And this code in SIDEBAR.PHP no longer fixes the problem either. {EDIT: I PASTED IN THE WRONG CODE HERE, NOW I’VE CORRECTED THAT}
<?php
// =============================================================================
// SIDEBAR.PHP
// -----------------------------------------------------------------------------
// Handles sidebar output for posts and pages.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's pages, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-sidebar.php," where you'll be able to find
// the appropriate output.
// =============================================================================
?>
<div class="x-visibility x-visible-desktop">
<?php x_get_view( x_get_stack(), 'wp', 'sidebar' ); ?>
</div>
Seriously. I loved this theme until sometime around this spring stuff started breaking. THIS is why I really dislike X’s heavy reliance on doing custom code: Because when the theme updates, things break. And I’m not ready to switch to Pro, because I keep seeing people having the same problems with it as I’m having with X. Plus, as I’ve described in a previous post, Pro basically blew up my entire site layout when I previewed it and I just can’t afford the kind of downtime on my site it would take to fix it. Why can’t you people just get your sidebars to scroll properly and to not load on small screens? This is something even a lot of free themes are able to do.
I’ve recommended X Theme on Quora and to other bloggers I know. I even bought a second license for a blog a colleague of mine wants to launch. But in its current state, I just can’t recommend it to anyone anymore. I’m heartbroken because I truly adore this theme and have been waiting for MONTHS in hope that these issues would be resolved.