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
// Woocommerce Show All products on Shop page | |
/** | |
* Change number of products that are displayed per page (shop page) | |
*/ | |
add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 ); | |
function new_loop_shop_per_page( $cols ) { | |
// $cols contains the current number of products per page based on the value stored on Options -> Reading | |
// Return the number of products you wanna show per page. |
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="checkbox"] { | |
transform: scale(2); | |
-ms-transform: scale(2); | |
-webkit-transform: scale(2); | |
margin-top: 8px; | |
} |
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
// Just add those code in your functions.php file | |
// Function to change email address | |
function wpb_sender_email( $original_email_address ) { | |
return '[email protected]'; | |
} | |
// Function to change sender name | |
function wpb_sender_name( $original_email_from ) { | |
return 'Tim Smith'; |
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
<!-- Use this code where do you want to show your cart icon --> | |
<div class='my-cart'> | |
<a class="cart-contents" href="<?php echo wc_get_cart_url(); ?>" title="<?php _e('View Cart'); ?>"><?php echo sprintf ( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count() ), WC()->cart->get_cart_contents_count() ); ?> - <?php echo WC()->cart->get_cart_total(); ?></a> | |
</div> | |
/* Here is css */ | |
.cart-contents::before { | |
font-family: WooCommerce; |
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
/* At first Upload your desire fonts the try it */ | |
@font-face { | |
font-family: "Arvo"; | |
src: url(http://www.example.com/wp-content/themes/your-theme/fonts/Arvo-Regular.ttf); | |
font-weight: normal; | |
} | |
/* Now you can use it in for your Html code something like this*/ |
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
<div id="f1_container"> | |
<div id="f1_card" class="shadow"> | |
<div class="front face"> | |
<img src="/images/Windows%20Logo.jpg"/> | |
</div> | |
<div class="back face center"> | |
<p>This is nice for exposing more information about an image.</p> | |
<p>Any content can go here.</p> | |
</div> | |
</div> |
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 | |
// [desktoponly] shortcode | |
add_shortcode('desktoponly', 'wp_snippet_desktop_only_shortcode'); | |
function wp_snippet_desktop_only_shortcode($atts, $content = null){ | |
if( !wp_is_mobile() ){ | |
return wpautop( do_shortcode( $content ) ); | |
} else { | |
return null; | |
} | |
} |
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 echo do_shortcode( '[contact-form-7 id="1234" title="Contact form 1"]' ); ?> |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^(.*)\.html$ $1.html [nc] | |
RewriteCond %{HTTP_HOST} !^www.greatamericanautotransportation.com$ [NC] | |
RewriteRule ^(.*)$ http://www.greatamericanautotransportation.com$1 [L,R=301] | |
</IfModule> | |
# BEGIN EXPIRES | |
<IfModule mod_expires.c> |
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 get_header(); ?> | |
<div class="content-outer-wrap"> | |
<div class="content-wrap"> | |
<div class="footer-wrap"> | |
<div class="content"> | |
<div class="col1"> | |
<div class='myimage-wrap'> | |
<div class='flower'></div> | |
<div class='imageframe'> | |
<div class="top-image"> |
NewerOlder