Skip to content

Instantly share code, notes, and snippets.

View ciorici's full-sized avatar

Pavel Ciorici ciorici

View GitHub Profile
@media screen and (min-width: 48em) {
.inspiro-front-page.has-header-image .custom-header-media, .inspiro-front-page.has-header-video .custom-header-media {
height: 800px;
height: 70vh;
}
}
.has-header-image.home.blog .custom-header, .has-header-image.inspiro-front-page .custom-header, .has-header-video.home.blog .custom-header, .has-header-video.inspiro-front-page .custom-header {
height: 70vh;
}
@ciorici
ciorici / fix-child.php
Last active September 11, 2018 14:09
Fix WPZOOM Child Theme
if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'wpz-shortcodes','zoom-font-awesome' ) );
}
endif;
add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );
@ciorici
ciorici / index.php
Created April 27, 2017 08:10
Featured Products Loop in WooCommerce 3.0
<ul class="products">
<?php
$args = array(
'post_type' => 'product',
'posts_per_page' => 12,
'tax_query' => array(
array(
'taxonomy' => 'product_visibility',
'field' => 'name',
'terms' => 'featured',
<h1>Buttons</h1>
<h4><strong>Different Colors:</strong></h4>
[button]Default[/button] [button color="red"]Red[/button] [button color="orange"]Orange[/button] [button color="green"]Green[/button] [button color="aqua"]Aqua[/button] [button color="teal"]Teal[/button] [button color="purple"]Purple[/button] [button color="pink"]Pink[/button] [button color="silver"]Silver[/button]
<h4><strong>Multiple Sizes</strong></h4>
[button size="xl"]Extra Large[/button] [button size="large"]Large[/button] [button]Normal[/button] [button size="small"]Small[/button]
<h4><strong>Buttons with Icons</strong></h4>
[button style="alert" color="silver"]Alert[/button] [button style="tick" color="silver"]Tick[/button] [button style="info" color="silver"]Info[/button] [button style="note" color="silver"]Note[/button] [button style="download" color="silver"]Download[/button]
&nbsp;
<h1>Icon Links</h1>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p><?php _e('Logged in as', 'wpzoom') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Log out of this account', 'wpzoom') ?>"><?php _e('Logout', 'wpzoom') ?> &raquo;</a></p>
<?php else : ?>
<div id="formLabels">
</div><!-- /#main -->
<div id="footer">
<div class="copyright">
<div class="left">
Copyright &copy; 2012 Nippon News | Editorial Photos | Production Services | Japan. All Rights Reserved.
</div>
<link rel="stylesheet" type="text/css" href="http://www.nipponnews.net/media/wp-content/themes/originmag/style.css" media="screen" />
<link href='http://fonts.googleapis.com/css?family=Lato:400,700,900' rel='stylesheet' type='text/css'>
<link rel='stylesheet' id='wpzoom-custom-css' href='http://www.nipponnews.net/media/wp-content/themes/originmag/custom.css?ver=3.4.2' type='text/css' media='all' />
<script type='text/javascript' src='http://www.nipponnews.net/media/wp-includes/js/jquery/jquery.js?ver=1.7.2'></script>
<script type='text/javascript' src='http://www.nipponnews.net/media/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.8.20'></script>
<script type='text/javascript' src='http://www.nipponnews.net/media/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.8.20'></script>
<script type='text/javascript' src='http://www.nipponnews.net/media/wp-includes/js/jquery/ui/jquery.ui.tabs.min.js?ver=1.8.20'></script>
add_filter('wp_nav_menu_objects', function ($items) {
$hasSub = function ($menu_item_id, &$items) {
foreach ($items as $item) {
if ($item->menu_item_parent && $item->menu_item_parent==$menu_item_id) {
return true;
}
}
return false;
};
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<h1>Buttons</h1>
<h4><strong>Different Colors:</strong></h4>
[button]Default[/button] [button color="red"]Red[/button] [button color="orange"]Orange[/button] [button color="green"]Green[/button] [button color="aqua"]Aqua[/button] [button color="teal"]Teal[/button] [button color="purple"]Purple[/button] [button color="pink"]Pink[/button] [button color="silver"]Silver[/button]
<h4><strong>Multiple Sizes</strong></h4>
[button size="xl"]Extra Large[/button] [button size="large"]Large[/button] [button]Normal[/button] [button size="small"]Small[/button]
<h4><strong>Buttons with Icons</strong></h4>
[button style="alert" color="silver"]Alert[/button] [button style="tick" color="silver"]Tick[/button] [button style="info" color="silver"
<div class="cover"><div id="jwplayer-1-div" class="Out-of-the-Box_copy">
<div id="jwplayer-1"></div>
</div>
<script type='text/javascript'>jwplayer('jwplayer-1').setup({"flashplayer":"http://localhost/wp/onplay/files/jw-player-plugin-for-wordpress/player/player.swf?wmode=transparent","width":"100%","height":"auto","controlbar":"bottom","skin":"http://localhost/wp/onplay/wp-content/plugins/jw-player-plugin-for-wordpress/skins/facebook.zip","dock":"false","autostart":"false","icons":"true","playlist.position":"none","playlistsize":"180","repeat":"none","shuffle":"false","bufferlength":"1","smoothing":"true","stretching":"uniform","wmode":"opaque","mute":"false","volume":"90","mediaid":"1119","image":"http://localhost/wp/onplay/files/2012/09/hqdefault.jpg","file":"http://content.bitsontherun.com/videos/nPripu9l-327.mp4","modes":[{"type":"flash","src":"http://localhost/wp/onplay/files/jw-player-plugin-for-wordpress/player/player.swf?wmode=transparent"},{"type":"html5","config":{"streamer":"","provider":"","file