I think both of your troubles here share a common root! The CSS selectors you're using con't match the HTML elements you mean for them to work on.
Footer
Regarding your footer styling, the CSS selector you're using to target the footer element is close, but not quite right!
.footer
will target an HTML element with a class of footer
. Something like <div class="footer"></div>
.
#footer
will target an HTML element with an id of footer
. Something like <div id="footer"></div>
.
So, change one or the other such that the CSS selector matches what's in the HTML document.
Random Posts
I can see that you're targeting an HTML element with a class of .entry
with that javascript snippet you're using. the ".entry
" part of the snippet in the question you linked.
{block:IndexPage}
<script>
$(document).ready(function (name) {
return function () {
var elts = $(name);
var max = elts.length;
$.each(elts, function (index, elt) {
var randPos = Math.floor(Math.random() * (max - 0 + 1) + 0);
$(elt).insertBefore(elts[randPos]);
})
return ;
}
}(".entry")) // <-- THIS LINE!
</script>
{/block:IndexPage}
Looking at some of the code on your page, here's an example of an analogous element that I see:
<article id="ant-175268574147" class=" ants-item-three post modal post-photoset pp" ...>...</article>
And if you'd like to target that, you could use a CSS selector like this: article.post
. That translates basically, to <article></article>
elements with a class of post
.
A word of warning, though, it looks like your theme uses something called isotope to lay out the posts grid. You'll want to add your javascript BEFORE lines like
$antsIsoCont = $('#stash-ants');
antsIsotope = $antsIsoCont.imagesLoaded(function(){
// ...
To be sure that you're not trying to move around elements that have already been absolutely positioned.