-
AuthorPosts
-
June 27, 2020 at 10:34 pm #1226142
Hi again,
hereyou may see a side bar on the right.
I would like to have the first picture (the seahorse) higher, closer to the text “KOH LANTA BEST DIVE SITE”Thanks
June 29, 2020 at 4:15 pm #1226493Hey phoenixdivers-kohlanta,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#text-37 { margin-bottom: 0; padding-bottom: 0; }
If you need further assistance please let us know.
Best regards,
VictoriaJune 29, 2020 at 6:54 pm #1226546Perfect Victoria, it worked.
Should I like a bit more higher?
I tried putting a higher value than -37 but didnt change the results got with -37Cheers
June 29, 2020 at 8:09 pm #1226571Hi phoenixdivers-kohlanta,
The 37 here is to identify the widget, not to change the value :)
Please add this code:
#nav_menu-2 { padding-top: 10px; } #text-37 { margin-bottom: 0; padding-bottom: 0; }
Best regards,
VictoriaJune 29, 2020 at 8:28 pm #1226580I am so stupid!
;-)By the way I added in quick and custom but it looks like your previous one
June 30, 2020 at 4:43 pm #1226807Hi phoenixdivers-kohlanta,
Please remove the part that I gave you before and just keep the code given in the last reply.
Best regards,
VictoriaJune 30, 2020 at 4:56 pm #1226823Yes I did.
can you check whats happened to the page written in private.
Side bar went kinda full sectionCheers
June 30, 2020 at 5:24 pm #1226846Hi phoenixdivers-kohlanta,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJune 30, 2020 at 5:51 pm #1226863July 1, 2020 at 7:13 pm #1227318Now seems eveything ok.
About sidebar, one more question:
how to center the image on the page below in provate content?Moreover,
there is a way to control sidebar and page layout in tablet portrait?
I think I’ll open another post about this topic, since tablet portrait of my website is very random in layout and i dont know how to control it (page by page would be a nigthmare)Cheers
July 3, 2020 at 2:29 am #1227606Sorry Again
this page has been behaving strange with side bar.Thanks
July 11, 2020 at 7:47 pm #1229696Hi
Can someone help me?
ThanksJuly 12, 2020 at 5:37 am #1229735Hi,
Sorry for the late reply and thanks for the login, I took a look at your page and added this css in your WordPress > Customize > Additional CSS field:@media only screen and (min-width: 1440px) { #top.page-id-2524 #main > div.container_wrap_first.container_wrap > div { width: 73% !important; float: left !important; max-width: 1350px !important; } #top.page-id-2524 #main > div.container_wrap_first.container_wrap { width: 90% !important; margin: auto !important; } #top.page-id-2524 #wrap_all #main .sidebar { width: 352px !important; } #top.page-id-2524 #main > div.container_wrap_first.container_wrap > div > main { width: 100% !important; } }
I also found that your inner page height didn’t match your content height so I added this script to your functions.php
function custom_script(){ ?> <script> (function($){ $(window).load(function(){ var s1 = $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap > div ').height(); var s2 = $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap').height(); if (s1 > s2) $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap').css('height', s1 + "px"); else $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap > div').css('height', s2 + "px"); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_script');
please clear your browser cache and check.
Best regards,
MikeJuly 14, 2020 at 2:24 pm #1230310Sorry I did clear everything but still has some issues…
July 16, 2020 at 1:10 pm #1230901Hi,
Sorry for the late reply, I took another look at your page, but it seems ok to me. Please see the screenshot in Private Content area. Please explain what is wrong and which browsers you have tested with.
If you could upload a screenshot with the error highlighted it would be helpful.Best regards,
MikeJuly 18, 2020 at 10:14 am #1231461Hi thanks again.
I checked on safari and mozilla and it still wrong, same for mobile version (icon list very low).
cache and history cleanedthe strange is that only this page behaves like that, and since when I started this topic, before it was ok as well.
July 19, 2020 at 3:09 am #1231504Hi,
Ok, looking at your /koh-haa-diving/ page for mobile I see the sidebar is very low with a large gap, so I adjusted the script to only work screens larger than 1440px.
Please clear your browser cache and check.
What is wrong with the desktop version?
Please note that if testing on a desktop and resizing the window to simulate different device sizes you will need to reload the page for the window size to be recognized at each size you test. This doesn’t affect actual devices just resized desktop browsers.For future reference this is the updated script:
function custom_script(){ ?> <script> (function($){ $(window).load(function(){ var width = $(window).width() var s1 = $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap > div ').height(); var s2 = $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap').height(); if (s1 > s2 && width >= 1440) { $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap').css('height', s1 + "px"); } else { } }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_script');
Best regards,
MikeJuly 20, 2020 at 10:37 pm #1231879I attached privately screenshot of “koh haa” desktop page.
As you can see you cant see the side bar on the right: it has been pushed lower.
I attached also a screenshot of “hin daeng” page, where the side bar is normally positioned.SImilar problem in mobile version, the side bar is totally different fron “koh haa” and all the other “dive sites” pages.
Sorry If I repeat that the strange is that only this “koh haa” page (from the “dive site” list) behaves like that, and since when I started this topic, before it was ok instead.
July 22, 2020 at 2:15 pm #1232251Hi,
Sorry, that is not how it looks to me, please see the screenshot in Private Content area.
The two pages don’t look the same because on the other pages you have the top image in a color section, on the page it is just an image. I disabled the script from above since you said this was not an issue until it was added.Best regards,
MikeJuly 22, 2020 at 5:33 pm #1232341Hi again,
I think it is my fault that i am unable to be clear :-)1) it doesnt matter if top image colour section is present, check
phoenixdivers-kohlanta.com/koh-lanta-dive-sites/anemone-reef-diving/
and this it’s like “koh haa” should be.
Your screenshot is actually ok but I am unable to see this page like that.
(I tried 4 different laptops! )2) This issue didnt come after your script, it shows up before I opened this post.
Thanks again.
July 23, 2020 at 1:22 pm #1232587Hi,
Thank you for the feedback, I now see that you have been using laptops so I imagine your screen width is about 1440px, and at about that width I see this error. My desktop is larger than this so I was missing it.
What is your max screen resolution for your laptops?Best regards,
MikeJuly 23, 2020 at 3:06 pm #1232612Hi Mike
yes my laptop are max 1440.But the point is:
Why ONLY “koh haa” page shows this issue?!?!
ALL the other pages under the menu “our dive site” are ok.MOREOVER
look koh haa in italian: that is fine (sidebar still in english at the moment). Only english is the problem
(do not look other languages, still under construction)July 24, 2020 at 11:07 am #1232926here attached screenshot of higher resolution laptop.
Same problem and ONLY in English Koh Haa page.Cheers
July 25, 2020 at 8:34 pm #1233227Hi,
Thank you for your patience, I Enabled the Avia Layout Builder Debugger and evaluated your page code and found that you had a rouge</div>
in the text elementKOH HAA YAI DIVING SITE: THE CAVE.
at the very endthe Ocean.</div>
Perhaps you copied the text from somewhere else and you didn’t see the rouge closing tag.
So I removed it and now your page and sidebar load correctly.
Please clear your browser cache and check.Best regards,
MikeJuly 27, 2020 at 4:25 pm #1233546Great Mike!
All good now!
Just a little thing
https://ibb.co/3Cg8ZX3I saw there is a white panning over the grey of the title. It was not like that “before”.
Could you remove it?super thanks again
July 28, 2020 at 12:54 pm #1233741Hi,
Thanks for the screenshot, but I’m not sure what we are looking at, what is “white panning over the grey of the title”?
Perhaps try this css:.html_header_top.html_header_sticky #main { padding-top: 46px !important; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeAugust 2, 2020 at 10:12 am #1234577Hi
didnt try yet your css but before this topic started there was no WHITE PART above the grey of the Title container.
Also (but this is not a big deal) our logo on the left was stady big, without resizing down as it’s doing now.August 2, 2020 at 12:28 pm #1234597Hi,
Thank you, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:.html_header_top.html_header_sticky #main { padding-top: 46px !important; }
Best regards,
MikeAugust 3, 2020 at 11:27 am #1234784It seemed nothing differs.
But my question is:
Why did it change behavior from before?August 3, 2020 at 1:53 pm #1234853Hi,
I didn’t see it “before” but right now your “#main” top padding is set to the default 88px
Please see the screenshot in Private Content area, in it the green color is the padding. The css above will correct this but you will need to add it and clear your caches, right now the css doesn’t seem to be added.
Please include an admin login in the Private Content area so we can see why the css is not working, perhaps you have a missing bracket?Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.