This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (max-width:1280px){ | |
#mainnav{ | |
display: none; | |
} | |
.btn-menu{ | |
display: block; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( matchMedia( 'only screen and (max-width: 1280px)' ).matches ) { | |
currMenuType = 'mobile'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( matchMedia( 'only screen and (max-width: 1024px)' ).matches ) { | |
currMenuType = 'mobile'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.site-logo-middle-menu{ | |
position: relative; | |
display: inline-block; | |
margin-left: 10px; | |
margin-right: 10px; | |
} | |
.site-logo-middle-menu > a{ | |
position: absolute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( get_theme_mod('site_logo') ) : ?> | |
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a> | |
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> | |
<?php else : ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( get_theme_mod('site_logo') ) : ?> | |
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a> | |
<?php else : ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* All products in one page | |
* | |
* Display all products in a table with their add to cart button. | |
* Usage : [all_products] to display all products. | |
* Usage : [all_products category="singles"] to display products under "singles" category (slug). | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Zerif Lite version 1.8.2.9 | |
*/ | |
add_filter('get_the_excerpt', 'zerif_add_read_more_link'); | |
function zerif_add_read_more_link($post_excerpt){ | |
global $post; | |
if(strstr($post->post_content,'<!--more-->')) { | |
$more_link = ' <a class="more-link" href="'.esc_attr(get_permalink($post->ID) . "#more-{$post->ID}").'">'.__('Continue reading', 'zerif-lite').'</a>'; |