Tagged: x
-
AuthorPosts
-
May 19, 2016 at 2:52 pm #1000137
gnycParticipantHey guys,
I’m curious how to set what screen width the sidebar shows up in the Icon Theme. It’s currently set to 1200, and I’d like it to show up at 1340. Any insight would be greatly appreciated!
May 19, 2016 at 7:29 pm #1000470
DarshanaModeratorHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
May 20, 2016 at 3:31 pm #1002067
gnycParticipantThis reply has been marked as private.May 20, 2016 at 10:34 pm #1002548
FriechModeratorHi There,
Thanks! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
Thanks.
May 21, 2016 at 9:13 am #1002961
gnycParticipantHere’s a marked up guide for what I would like to accomplish. Please let me know if this is clear.
May 21, 2016 at 9:56 am #1002987
Rue NelModeratorHello There,
To resolve this issue and be able to show the sidebar only when the screen is wider than 1340px, please add the following css code in the customizer, Appearance > Customize > Custom > CSS at the bottom of your other custom css
@media(max-width: 1340px) { .x-sidebar-content-active .x-sidebar { display: none !important; } body.x-sidebar-content-active, body[class*="page-template-template-blank"].x-sidebar-content-active.x-blank-template-sidebar-active { padding-left: 0; } }Please let us know if this works out for you.
May 21, 2016 at 1:13 pm #1003132
gnycParticipantIt works for the sidebar content, but there’s still the white band that comes up. Picture attached.
May 21, 2016 at 9:05 pm #1003457
Rue NelModeratorHello There,
Before I posted the code I have tested it in my local testing server. Since you have installed a caching plugin W3 Total Cache, please clear your plugin cache before testing your site. This can cause the changes to not take place on the front end. It will eventually show up when the cache regenerates, but it’s not ideal if you’re looking to see your changes immediately. Caching plugins are best to turn on only when you’ve finished building the site.
Please let us know how it goes.
May 22, 2016 at 9:50 am #1003883
gnycParticipantCleared the cache and disabled W3 Total Cache and unfortunately it’s still an issue. I inspected the element and it’s page padding–the actual navbar goes away, but the padding that creates the space for it is still there. I’ve left it live for the time being so you can take a look.
May 22, 2016 at 4:27 pm #1004149
RadModeratorHi there,
Yes, I can see that now, but I can’t confirm what’s the issue with the CSS since your site resources are minified and cached.
Your caching is actually an overkill, you have W3 Total Cache, but you also have Autoptimize ( http://greenerynyc.com/wp-content/cache/autoptimize/css/autoptimize_7453e431b82a57236a67920da1463f2b.css )
Would it be okay if they are disabled while we’re testing it?
Thanks!
May 23, 2016 at 6:44 am #1005034
gnycParticipantGot it. They’re both disabled now.
May 23, 2016 at 7:51 am #1005123
Paul RModeratorHi,
Please replace the css code provided above with this.
@media(max-width: 1340px) { .x-sidebar-content-active .x-sidebar { display: none !important; } body.x-sidebar-content-active, body[class*="page-template-template-blank"].x-sidebar-content-active.x-blank-template-sidebar-active { padding-left: 0 !important; } }Hope that helps.
May 24, 2016 at 8:56 am #1007280
gnycParticipantThat did help. Thanks again for the tremendous service guys!
May 24, 2016 at 9:14 am #1007310
LelyModeratorYou’re welcome!
Cheers!
May 24, 2016 at 9:34 am #1007341
gnycParticipantActually I just found one more problem. The navbar moves left 250 pixels a little too early, leaving an open gap on the navbar.
I was able to find the command by inspecting the element, and here’s the code I copied from Chrome:
@media (min-width: 1200px)
body.x-sidebar-content-active .x-widgetbar, body.x-sidebar-content-active .x-navbar-fixed-top, body[class*=”page-template-template-blank”].x-sidebar-content-active.x-blank-template-sidebar-active .x-widgetbar, body[class*=”page-template-template-blank”].x-sidebar-content-active.x-blank-template-sidebar-active .x-navbar-fixed-top {
left: 250px;
}However I’m not sure how to change:
@media (min-width: 1200px)
to
@media (min-width: 1300px)
so that only the navbar is affected.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1000137 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
