Skip to content

Instantly share code, notes, and snippets.

@VladKorzun
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VladKorzun/452e291652375335d7aa to your computer and use it in GitHub Desktop.
Save VladKorzun/452e291652375335d7aa to your computer and use it in GitHub Desktop.
Hotfix
<!-- Це в header -->
<style type="text/css">
header.site-header {
background-repeat: no-repeat;
background-position: top center;
}
.site-search {
margin-top: 10px;
}
.cart-contents {
display: none;
}
a.add_to_cart_button {
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin: 0 auto;
width: 170px;
}
span.price {
position: absolute;
bottom: 35px;
left: 0;
right: 0;
}
</style>
<!-- це в футер -->
(function () {
function setEqualHeight (columns) {
var tallestColumn = 0;
columns.each(
function()
{
currentHeight = jQuery(this).height();
if(currentHeight > tallestColumn)
{
tallestColumn = currentHeight;
}
}
);
columns.height(tallestColumn);
}
setEqualHeight(jQuery(".products > li"));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment