- https://github.com/congtrieu112/phim
- https://github.com/shaddyy21/Lavish-Lawn
- https://github.com/sohilgupta/datamelons
- https://github.com/jtebeau/mmm
- https://github.com/mohitkr05/_wplove
- https://github.com/jimchristie/dev_jimchristie_me
- https://github.com/vee879/wordpress_4_3_1
- https://github.com/hamedb89/wp-theme-boilerplate
- https://github.com/master2be1/redux-framework
- https://github.com/DarrenJansen/Sites
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
{% if card_product.tags contains 'best-seller' %} | |
<span class="badge">Best Seller</span> | |
{% endif %} |
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
/* | |
By oooh boi - Elementor Tips and Tricks | |
This will create "triangles" custom shape divider on the | |
right-hand side of the column (vertical), and then crete | |
another one (horizontal) for mobile devices. | |
*/ | |
@media (min-width: 768px) { | |
selector:before { | |
content: ""; | |
position: absolute; |
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 | |
add_filter( 'woocommerce_sale_flash', 'percentage_woocommerce_sale_flash', 10, 3 ); | |
function percentage_woocommerce_sale_flash( $html, $post, $product ) { | |
if ( $html!='' ) { | |
$perc = round( 100 - ( $product->sale_price * 100 / $product->regular_price ) ); | |
if ( $perc>0 ) $html = '<span class="onsale">-'.$perc.'%</span>'; | |
} | |
return $html; | |
} |
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
STEPS: | |
1 - If the theme was not developd by you, first create a child theme (How to create a child theme? Read at https://codex.wordpress.org/Child_Themes) or else modifications will be lost when updating your theme. | |
2 - Add the following CSS file in your theme/child theme (better if you create a folder to add CSS there). | |
3 - Add the following snippet in your functions.php file: | |
function tpw_enqueue_custom_admin_style() { | |
echo '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory_uri() . '/css/admin/custom-login-styles.css" />'; | |
} |
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 | |
/** | |
* Plugin Name: Set featured image | |
* Plugin URI: http://wpengineer.com/2460/set-wordpress-featured-image-automatically/ | |
* Description: Set featureed image automaticly on save post/page | |
* Version: 1.0.1 | |
* Author: Frank Bültge | |
* Author URI: http://bueltge.de | |
* License: GPLv3 | |
*/ |
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 | |
/** | |
* Contact Form 7 - Conditionally Chance Recipient to Post Meta | |
* | |
* This function gets the current post id and grabs the desired meta to use | |
* it on the submited form data to change the recipient email conditionally. | |
* You can add some conditional checks to make sure the data is correct. | |
* | |
* @author António Pinto <apinto@vanguardly.com> | |
* @link https://gitlab.com/snippets/1662384 |
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 | |
/** | |
* WordPress Query Comprehensive Reference. | |
* | |
* All credits go to luetkemj. Thanks! | |
* | |
* @author luetkemj <luetkemj@gmail.com> | |
* @author s3rgiosan <me@s3rgiosan.com> | |
* | |
* @see http://codex.wordpress.org/Class_Reference/WP_Query#Parameters |
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 | |
/** | |
* Infinite next and previous post looping in WordPress | |
*/ | |
if( get_adjacent_post(false, '', true) ) { | |
previous_post_link('%link', '← Previous Post'); | |
} else { | |
$first = new WP_Query('posts_per_page=1&order=DESC'); $first->the_post(); | |
echo '<a href="' . get_permalink() . '">← Previous Post</a>'; | |
wp_reset_query(); |
NewerOlder