Tagged: x
-
AuthorPosts
-
July 30, 2016 at 9:00 pm #1110566
EricParticipantThis reply has been marked as private.July 31, 2016 at 3:04 am #1110748
RadModeratorHi Eric,
Got it, but with screenshot 8, it’s not quite possible to fix the width while preventing it from overflowing. It’s like the entire layout is responsive and compressing, but the element within has fix dimension.
We can decrease the sidebar by percentage, and we can increase the content by percentage too. Hence, that will increase the content width but still responsive. If you like to do that, then we’ll have to re-do the CSS since we will be setting new breakpoints and sizes. Would you like to do that?
Or do you like your entire site’s desktop design to stay on fixed width? No resizing, no compressed, no expansion.
Thanks!
July 31, 2016 at 9:48 am #1110973
EricParticipantHmm, would it be possible to try your first option and then if it doesn’t quite work, then I could try to make it fixed width? I assume the second option will dramatically change the website, but I’m willing to try both to get the desired effect.
So if you can let me know what the steps are and thanks again for your patience!
July 31, 2016 at 3:25 pm #1111164
RadModeratorHi there,
Those CSS are in effect, adding more CSS will complicate it. I can’t try it on my end since your setup is different from mine. How about clone your site and let’s try it there?
Thanks!
August 1, 2016 at 10:43 am #1112179
EricParticipantOkay good idea. But just to make sure I don’t screw anything up, how would you go about cloning my website? Should I use the duplicator plugin? Or is there an easier way? Let me know the easiest/safest cloning method and then once it’s done we can go from there.
Thanks!
August 1, 2016 at 11:23 am #1112240
JoaoModeratorHi there,
Please install All in one migration plugin and export your whole site. Then import it into your new destination.
That process will preserve all content, but URLs/domain will be updated depending on where you imported it.
You also can use a paid service like Blogvault which is really good.
Hope this helps.
August 1, 2016 at 1:01 pm #1112397
EricParticipantThis reply has been marked as private.August 1, 2016 at 11:30 pm #1113224
LelyModeratorHello Eric,
Yes, we need another wordpress setup to import the backup file and that will be your staging site. Some hosting offers staging site. You may ask your hosting provider if it’s available.
Regarding the Iphone and Ipad issue, we can check if it can be done using CSS. But then can you clarify which screenshot 3 you’re referring to? This is so we can be specific in our suggestion to your blog single post page.
August 2, 2016 at 12:04 am #1113245
EricParticipantYep sorry I should have specified.
Screenshot 3 (https://s3.amazonaws.com/community-themeco/app/uploads/2016/07/30205245/screenshot-3-sample.png) and screenshot 4 (https://s3.amazonaws.com/community-themeco/app/uploads/2016/07/30205246/screenshot-4-sample.png) shows how I’d like my blog posts to appear on the iPhone (mobile).
Then there’s screenshot 7 (https://s3.amazonaws.com/community-themeco/app/uploads/2016/07/30205426/screenshot-7-sample.png), which shows how I’d like my blog posts to appear on the iPad (tablet).
And just to show you the difference, currently on the iPhone my blog posts appear like this (https://s3.amazonaws.com/community-themeco/app/uploads/2016/07/30205244/screenshot-2-iPhone.png), which makes it very difficult to read as the page is very narrow. And on the iPad, it appears like this (https://s3.amazonaws.com/community-themeco/app/uploads/2016/07/30205426/screenshot-6-iPad-no-code.png), which isn’t bad, however if possible I’d like the sidebar to remain on the side, which is how it appears in the screenshot listed above.
If a solution to both those issues can be found using CSS, then I’ll certainly be able to make due with the aforementioned desktop issues.
Let me know!
August 2, 2016 at 3:25 am #1113392
LelyModeratorHello Eric,
For the mobile view, please add this custom CSS:
@media (max-width: 480px){ h1.entry-title { font-size: 160%; } .single-post .x-main.left { padding: 10px; } }For tablet, please add this custom CSS:
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { .single-post .x-main.left { float: left !important; display: inline-block !important; width: 72% !important; padding: 10px; } .single-post aside.x-sidebar.right { float: right; display: inline-block; width: 26% !important; } }Hope this helps.
August 2, 2016 at 8:03 am #1113704
EricParticipantHey thanks for the quick reply! The code for the mobile worked great, I was just wondering if it’s possible to create a bit of padding between the image and the text, which as you can see from screenshot 1 is very close together. If I were to add the spacing within the post itself, then the picture wouldn’t look good on the tablet and on the desktop, so I was just wondering if it’s possible to add some css that automatically creates spacing for mobile only. And if that’s not possible, is there something I can add directly into my posts that’ll create spaces that show up on mobile only?
Also unfortunately the code for the tablet didn’t work, as I saw no difference once it was added. Perhaps there was an issue within the code that blocked it from taking effect? Let me know and thank you again!
August 2, 2016 at 10:05 pm #1114840
LelyModeratorHello Eric,
For the spaces, I can see that the image was added inside text element. What we can do is use GAP shortcode hidden on desktop. Add inside the text element right after the image element. Something like this:
[x_gap size="100px" class="cs-hide-xl cs-hide-lg cs-hide-md cs-hide-sm"]
Adjust the size accordingly. That 100px space is only visible on mobile.Currently, I can’t see the CSS for tablet on your site.
Can you try updating it to this and add again:@media (min-width: 768px) and (max-width: 1024px) { .single-post .x-main.left { float: left !important; display: inline-block !important; width: 72% !important; padding: 10px; } .single-post aside.x-sidebar.right { float: right; display: inline-block; width: 26% !important; } }Hope this helps.
August 3, 2016 at 10:37 am #1115555
EricParticipantHey unfortunately neither of them worked. I placed the gap shortcode after the image but instead of separating the image from the text on mobile only, all it did was create a gap between the headline and the image (see screenshot 1), which was also visible on the desktop and the tablet as well. Any reason as to why this didn’t work?
Also while we’re on the subject of that particular shortcode, could I add to it so that the image in question will become centered on mobile only?
And for the css, the code unfortunately had no effect on the tablet, so at this point I think I’ll just leave it the way it is. I made some modifications that made it look a bit better so for the sake of simplicity I’ll keep it as is! But thanks for trying.
Let me know about the shortcode and thanks again!
August 3, 2016 at 2:08 pm #1115905
LelyModeratorHi Eric,
Just to check the issue, I have added the shortcode on this post:http://ghostswithtypewriters.com/first-attempt/. I found out it’s because of the default left align position on desktop. To fixed that, I have added the following CSS code on Settings Tab > Custom CSS:
@media (max-width: 480px) { .x-text .alignleft { float: none; display: block; margin: 0 auto !important; } }Above code will also center the image on mobile view. See attached screenshot. Feel free to move above CSS on Customizer’s for it to work on the entire site. I left it working on that post page.
You’re welcome!
Cheers!
August 3, 2016 at 6:17 pm #1116218
EricParticipantHey that CSS worked great! There’s just one small issue left to be resolved. Although the gap shortcode does create the desired effect on the mobile, for some reason on the tablet and on the desktop it’s also creating a gap between the image and the title (as you can see from screenshot 1, which without the shortcode, appears like screenshot 2).
So how can I have it apply only to the mobile? Once I get that everything will be perfect.
Thanks in advance!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1107563 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
