Coding Questions

8 replies · opened Oct 12, 2019

Ccochn01Oct 12, 2019

Hello,

The websites are coming along very nicely. Thank you for all your assistance.
However, I do have some other additional questions.

  1. Noticed something strange happening only on iPad Mini. When viewing the Home Page, scrolled all the way down to the footer area. When change rotation to Landscape view --then back-- to Portrait view, a white space is appearing at the bottom. What makes this so weird, Every page works fine except for the Home page. Also this is not occurring at all on Android tablet? Have you heard of anyone else experiencing this? PLEASE SEE SCREEN SHOT. https://codenyc.net/niles

  1. I'm currently treating [section id="slider"] as static photo not as sliders. Is this preferred to use this way?
  2. I have incorporated a message field to the contact form from (demo-movers.html). Do I have to make the additional edit to the form.php file?
    https://codenyc.net/JAJ/quote.html

Thank you,
NC

SSemicolon WebSTAFFOct 13, 2019

Hello,

  1. Invalid HTML could be causing this error: https://validator.w3.org/nu/?doc=https%3A%2F%2Fcodenyc.net%2Fniles%2F . Consider fixing this and then let us know if you are still facing the same error.

  2. Not a Problem. This is just a Section and can consist of any content. Though using a .section inside the #content would be more ideal.

  3. No changes are required in the PHP. The form will include your additional fields automatically.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Ccochn01Oct 13, 2019

Hi thank you for answering so quickly.

1. Missing Attributes - From line 7, column 5; to line 7, column 73 - Line 7 within index.html?, column 5? line 7? column 73?

I'm trying to get understanding about what this is? Oh man trying to wrap my head to even find these :-(... (example) From line 13, column 2; to line 13, column 156... The (|) error I copied from original template -demo-car.html.

Even though these errors are occurring on Landing page... Doesn't explain why all other pages does not show the white space at bottom of page on iPad rotate... Only thing that appears really stand out and different is:

Duplicate ID slider.
From line 388, column 9; to line 388, column 76
↩<section id="slider" class="slider-element revslider-wrap clearfix">↩↩

2. Where you mention "using a .section inside the #content would be more ideal." What does this mean?

This is what I'm presently using for a Static Photo:

<section id="slider" class="slider-element swiper_wrapper clearfix" style="height: 600px;">
<div class="swiper-container swiper-parent">
<div class="swiper-wrapper">
<div class="swiper-slide dark" style="background-image: url('images/single/wall.jpg');">
</div>
</div>
</div>
</section>

3. Great thanks!

Ccochn01Oct 14, 2019

Hi there,

  1. Was thinking ? Maybe I could add:

body {
min-height:100%;/*or 100vh */
position:relative;
}

Maybe this would help?

The min-height property will make sure that the body at least takes 100% of your viewport height. This way even if you have less content your footer will always stick to the bottom of viewport.

Position: relative rule is set so that the footer is positioned absolute relative to the body and not any other wrapper

What do you think?

SSemicolon WebSTAFFOct 14, 2019

Hello,

  1. We are not really sure what is causing this as this appears to have been occurring due to Customized Codes. Please let us know if you are facing this issue on one of our Template so that we can check further. Additionally, consider fixing only the #slider duplicate ID error as this may cause resize issue sometimes.

  2. You can consider using this code:


	

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Ccochn01Oct 14, 2019

Yes it is weird. But, Alright! I think it worked! ?

**body {
min-height:100%;/or 100vh /
position:relative;
}

Thank you for the slider code. But it doesn't seem to be appearing. Am I totally replacing the whole section?

<section id="slider" class="slider-element swiper_wrapper clearfix" style="height: 600px;">
<div class="swiper-container swiper-parent">
<div class="swiper-wrapper">
<div class="swiper-slide dark" style="background-image: url('images/single/wall.jpg');">
</div>
</div>
</div>

	&lt;/section&gt;

NC

Ccochn01Oct 14, 2019

Another thought in regards to #1
Could I make footer sticky? I know the Header is already sticky. But can this be used together at the same time?

SSemicolon WebSTAFFOct 15, 2019

Hello,

  1. Honestly, the codes you are trying to implement is not recommended and it is more reliable to fix the invalid HTML to avoid unnecessary issues.

  2. The Footer is sticky by default, means, the Footer is designed to be sticky if the content is not enough on the Page. Which points us to believe that the issue is rather with Customized Codes.

Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Ccochn01Oct 16, 2019

Thank you...

Your were absolutely right. I should not find the solution from outside. So I dug a bit deeper.

I discovered all along I had placed the following code in the wrong area" The closing divs and contend end:

</div>
</div>
</section><!-- #content end -->

This certainly could through off the bottom of page drastically! I will certainly be able to tell once file finished upload through my firewall. It takes a while. Wheww! Thanks as always for your input.

Good Night
:-)

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard