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
input[type="email"], | |
input[type="number"], | |
input[type="password"], | |
input[type="search"], | |
input[type="tel"], | |
input[type="text"], | |
input[type="url"], | |
textarea { | |
/* styles */ | |
} |
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
<header class="page-row"> | |
<!-- apply your styles to me --> | |
<div class="header-inner"> | |
<h1>Site Title</h1> | |
</div> | |
</header> |
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 | |
register_post_type('slide', array( | |
'label' => 'Slides', | |
'menu_icon' => 'dashicons-slides' | |
)); |
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
<a href="<?php echo WC()->cart->get_cart_url(); ?>">Cart</a> |
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
<a href="<?php echo WC()->cart->get_cart_url(); ?>"><?php echo WC()->cart->get_cart_total(); ?></a> |
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 (sizeof(WC()->cart->get_cart()) != 0) : ?> | |
<a href="<?php echo WC()->cart->get_cart_url(); ?>"> | |
<span class="cart_totals"><?php echo WC()->cart->get_cart_total(); ?></span> | |
</a> | |
<?php endif; ?> |
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
<a href="<?php echo WC()->cart->get_cart_url(); ?>"> | |
<span class="cart_totals"><?php echo WC()->cart->get_cart_total(); ?></span> | |
</a> |
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
<form action="[ACTION]" method="post" target="_blank"> | |
<input type="email" name="EMAIL" placeholder="Email…"> | |
<input type="text" name="[BLOCKER]" tabindex="-1" style="display: none;"> | |
<input type="submit" value="Subscribe"> | |
</form> |
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 | |
add_action( 'init', 'kb_register_post_types' ); | |
function kb_register_post_types() { | |
register_post_type( 'kb_article', array( | |
'labels' => array( | |
'name' => 'Articles', | |
'singular_name' => 'Article', | |
'menu_name' => 'Knowledge Base', |
OlderNewer