This file contains hidden or 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 | |
/** | |
* Theme defaults and support for WordPress features. | |
*/ | |
function prefix_setup() { | |
/* | |
* Define starter content for the theme. | |
* See: https://make.wordpress.org/core/2016/11/30/starter-content-for-themes-in-4-7/ | |
*/ |
This file contains hidden or 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
/** | |
* Add tilt or slant text CSS effect | |
* | |
* @author Davinder Singh Kainth | |
* @link http://probeaver.com/?p=967 | |
* | |
*/ | |
.tilt-text-left { |
This file contains hidden or 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
/** | |
* Add click to call Phone button in Beaver Builder | |
* | |
* @author Davinder Singh Kainth | |
* @link http://probeaver.com/?p=735 | |
* | |
*/ | |
This file contains hidden or 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
/** | |
* Add arrow to menu items with sub-items in Beaver Builder theme | |
* | |
* @author Davinder Singh Kainth | |
* @link http://probeaver.com/?p=726 | |
* | |
*/ | |
.nav li > a:after { | |
color: inherit; |
This file contains hidden or 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
/** | |
* Manipulate default state and countries | |
* | |
* As always, code goes in your theme functions.php file | |
*/ | |
add_filter( 'default_checkout_country', 'change_default_checkout_country' ); | |
add_filter( 'default_checkout_state', 'change_default_checkout_state' ); | |
function change_default_checkout_country() { | |
return 'XX'; // country code |
This file contains hidden or 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
/////////////////////////////////////////////////////////////////// | |
// // | |
// WORDPRESS // | |
// PLUGIN: WOOCOMMERCE // | |
// NOTAS SOBRE PROBLEMAS Y SOLUCIONES // | |
// // | |
/////////////////////////////////////////////////////////////////// | |
/////////////////////////////////////////////////////////////////// |
This file contains hidden or 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
add_action('woocommerce_product_tabs','tab_name'); | |
add_action('woocommerce_product_tab_panels','tab_panel'); | |
function tab_name() { | |
echo '<li><a href="#tab-name">Tab Name</a></li>'; | |
} | |
function tab_panel() { | |
echo '<div class="panel" id="tab-name">'; | |
echo '<h2>This is a cool tab</h2>'; |
This file contains hidden or 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
/** | |
* Add the field to the checkout | |
**/ | |
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); | |
function my_custom_checkout_field( $checkout ) { | |
echo '<div id="my_custom_checkout_field"><h3>'.__('My Field').'</h3>'; | |
/** |