わかりました、皆さん、私はこれでバタバタしています。
クライアントのために、私は Genesis と WordPress を使ってたくさんのサイトを作ってきました。ただし、特定のサイトでは、固定フッターがないとテーマが見栄えがよくありません。
The problem is that
ジェネシス専用の粘着性のあるフッターはないようです。これにより、ホームページに次のように表示されます。
基本的に、コンテンツの長さが足りないため、フッターが一番下に表示されません。いくつかの jQuery フッターも試しました。そのような幸運はありません。
私が現在使用している修正は次のとおりです。
/* Sticky Footer Fix - It's like "Dirty Dancing" & "Footloose" Had a Baby . . . Mmmmm . . . */
* {margin:0;padding:0;}
/* must declare 0 margins on everything, also for main layout components use padding, not
vertical margins (top and bottom) to add spacing, else those margins get added to total height
and your footer gets pushed down a bit more, creating vertical scroll bars in the browser */
html, body {height: 100%;}
#wrap {height: 100%;}
#inner {min-height: 79%;
margin-bottom: 66px; /* must be same height as the footer */
overflow: hidden;}
#footer {position: relative;
margin-top: -66px; /* negative value of footer height */
height: 66px;
clear:both;}
問題なく動作しますが、私の好みには十分な精度ではありません。このサイトで何をしているのかを見ることができます
So here's my question:
コンテンツが十分に長くない場合、Genesis でページの下部にフッターを固定する最良の方法は何ですか?
こんなに大変だったことに驚いているので、何かが足りないだけだと思います。確かに他の人がこれを行っていて、修正を実行しています。
任意の考え (CSS または jQuery) を歓迎します! 真剣にこれで睡眠を失いました。