Some minor fixes and css additions

parent facb628e
...@@ -148,7 +148,7 @@ ul.products li.sexhack_thumbli { ...@@ -148,7 +148,7 @@ ul.products li.sexhack_thumbli {
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.site-main ul.products.columns-4 li.sexhack_thumbli { .site-main ul.products.columns-4 li.sexhack_thumbli {
width: 21%; width: 20% !important;
/* This to solve the different title lenght, combine with right trim and popup full title maybe, /* This to solve the different title lenght, combine with right trim and popup full title maybe,
and maybe not here but adding another container. and maybe not here but adding another container.
I should also re-check the sexhack class naming... I should also re-check the sexhack class naming...
......
...@@ -18,8 +18,30 @@ ...@@ -18,8 +18,30 @@
* along with SexHackMe Wordpress Plugin. If not, see <https://www.gnu.org/licenses/>. * along with SexHackMe Wordpress Plugin. If not, see <https://www.gnu.org/licenses/>.
*/ */
.shm-side-by-side {
display: inline-block;
margin-left: 10px;
margin-right: 10px;
height: 50px;
}
#shm-socials-centered {
text-align:center;
}
.home.page:not(.page-template-template-homepage) .site-header {
margin-bottom: 0em;
}
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.site-header-cart .cart-contents {
padding: 1px;
padding-top: 10px;
}
.col-full { .col-full {
max-width: 85em; max-width: 85em;
} }
...@@ -29,12 +51,15 @@ ...@@ -29,12 +51,15 @@
margin: 0 0 0.7em; margin: 0 0 0.7em;
} }
.site-branding {
margin-bottom: 0em;
}
.main-navigation ul.menu>li>a, .main-navigation ul.nav-menu>li>a { .main-navigation ul.menu>li>a, .main-navigation ul.nav-menu>li>a {
padding: 0.4em 0.5em; padding: 0.4em 0.5em;
} }
.site-header { .site-header {
padding-top: 0.3em; padding-top: 0.2em;
} }
.woocommerce-active .site-header .main-navigation { .woocommerce-active .site-header .main-navigation {
...@@ -59,4 +84,13 @@ ...@@ -59,4 +84,13 @@
} */ } */
} }
@media screen and (max-width: 767px) {
.advbottom {
display:none;
}
.site-header {
padding-top: 0.2em;
padding-bottom: 0.2em;
}
}
...@@ -48,7 +48,7 @@ if(!class_exists('SH_RClone')) { ...@@ -48,7 +48,7 @@ if(!class_exists('SH_RClone')) {
} }
if($this->rclone && is_callable('shell_exec') && false === stripos(ini_get('disable_functions'), 'shell_exec')) { if($this->rclone && is_callable('shell_exec') && false === stripos(ini_get('disable_functions'), 'shell_exec')) {
add_filter('sh_download_url_filter', array($this, 'get_gdrive_download_url')); add_filter('sh_download_url_filter', array($this, 'get_download_url'));
} }
} }
......
...@@ -43,6 +43,9 @@ if(!class_exists('SH_StoreFront')) { ...@@ -43,6 +43,9 @@ if(!class_exists('SH_StoreFront')) {
// Re add the cart in the right position // Re add the cart in the right position
add_action( 'storefront_header', 'storefront_header_cart', 40); add_action( 'storefront_header', 'storefront_header_cart', 40);
// Remove breadcrumb
remove_action( 'storefront_before_content', 'woocommerce_breadcrumb', 10 );
// Replace 404 page if /404.php exists // Replace 404 page if /404.php exists
if (is_readable($_SERVER['DOCUMENT_ROOT'].'/404.php')) { if (is_readable($_SERVER['DOCUMENT_ROOT'].'/404.php')) {
add_action( 'template_redirect', 'wp_SexHackMe\SH_StoreFront::page404' ); add_action( 'template_redirect', 'wp_SexHackMe\SH_StoreFront::page404' );
...@@ -64,6 +67,8 @@ if(!class_exists('SH_StoreFront')) { ...@@ -64,6 +67,8 @@ if(!class_exists('SH_StoreFront')) {
return ''; return '';
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment