Tagged: x
-
AuthorPosts
-
July 5, 2016 at 11:25 am #1073227
TrangParticipantHello, I am trying to make a right sidebar on a portfolio page appear above the content on a phone and tablet – ethos. http://christinesbeautyoffice.com/nail-album/
Regards, Trang.
July 5, 2016 at 11:47 am #1073258
JadeModeratorHi Trang,
You can add this under Custom > CSS in the Customizer.
@media (max-width: 980px) { .x-container>.offset { display: -webkit-box; display: -moz-box; display: box; -webkit-box-orient: vertical; -moz-box-orient: vertical; box-orient: vertical; } .x-main.left { -webkit-box-ordinal-group: 3; -moz-box-ordinal-group: 3; box-ordinal-group: 3; } aside.x-sidebar.right { -webkit-box-ordinal-group: 2; -moz-box-ordinal-group: 2; box-ordinal-group: 2; margin-bottom: 30px; } }Hope this helps.
July 6, 2016 at 4:19 am #1074416
TrangParticipantHello, thank you that worked beautifully. How can I reduce the space at the top of the sidebar? The gap is a little too large at the moment when viewed on a phone or tablet.
Regards, Trang.
July 6, 2016 at 5:22 am #1074495
Paul RModeratorHi Trang,
You can add this under Custom > Edit Global CSS in the Customizer.
@media (max-width: 979px) { body .x-sidebar { margin-top: 0px; } }Hope that helps.
July 6, 2016 at 5:32 am #1074508
TrangParticipantHello, thank you for that. I was so focused on moving the sidebar above content on the portfolio page when viewed on a phone or tablet I hadn’t realised it had moved it on all pages. How do I move it just on the portfolio page and as a supplementary question which is the best way to control the sidebar position across the whole website on individual pages.
Regards, Trang.
July 6, 2016 at 6:28 am #1074571
Paul RModeratorHi,
You can add page-template-template-layout-portfolio to make it affect only your portfolio index page.
eg.
@media (max-width: 979px) { .page-template-template-layout-portfolio .x-sidebar { margin-top: 0px; } }Hope that helps.
July 6, 2016 at 6:59 am #1074609
TrangParticipantHello, I have added that but it hasn’t made any difference.
Regards, Trang.
July 6, 2016 at 7:30 am #1074642
Paul RModeratorHi Trang,
You need to update your other code as well.
eg.
@media (max-width: 980px) { .page-template-template-layout-portfolio .x-container>.offset { display: -webkit-box; display: -moz-box; display: box; -webkit-box-orient: vertical; -moz-box-orient: vertical; box-orient: vertical; } .page-template-template-layout-portfolio .x-main.left { -webkit-box-ordinal-group: 3; -moz-box-ordinal-group: 3; box-ordinal-group: 3; } .page-template-template-layout-portfolio aside.x-sidebar.right { -webkit-box-ordinal-group: 2; -moz-box-ordinal-group: 2; box-ordinal-group: 2; margin-bottom: 30px; } }Hope that helps.
July 6, 2016 at 10:34 am #1074942
TrangParticipantHello, that has fixed it. A great service as usual thank you.
Regards, Trang.
July 6, 2016 at 12:58 pm #1075146
JoaoModeratorI am glad we managed to help Trang.
Please reach us if you need help with anything else.
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1073227 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
