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 | |
/** | |
* The template for displaying all pages. | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the wordpress construct of pages | |
* and that other 'pages' on your wordpress site will use a | |
* different template. | |
* | |
* @package WordPress |
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
1. Install composer in Terminal with curl -s getcomposer.org/installer | php -d detect_unicode=Off | |
2. Move composer to the bin directory so it can be used globally with mv composer.phar /usr/local/bin/composer |
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
i = insert at current location | |
a = insert after current location (append) | |
I = insert AT START of current line | |
A = insert AFTER END of current line | |
o = insert line below current line (open) | |
O = insert line ABOVE current line | |
s = delete character under cursor and start inserting in its place (substitute text) | |
S = delete all text on line and start inserting in its place (substitute line) | |
cw = delete to the end of current word and start inserting in its place (any movement command can be substituted for w) | |
cc = same as S (change line) |
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
*{ | |
-webkit-transition:all 1s ease; | |
-moz-transition:all 1s ease; | |
-o-transition:all 1s ease; | |
transition:all 1s ease; | |
} |
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
/* | |
* Display Image from the_post_thumbnail or the first image of a post else display a default Image | |
* Chose the size from "thumbnail", "medium", "large", "full" or your own defined size using filters. | |
* USAGE: <?php echo my_image_display(); ?> | |
*/ | |
function my_image_display($size = 'full') { | |
if (has_post_thumbnail()) { | |
$image_id = get_post_thumbnail_id(); | |
$image_url = wp_get_attachment_image_src($image_id, $size); |
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
define('WP_HOME','http://example.com'); | |
define('WP_SITEURL','http://example.com'); |
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 | |
/** | |
* Cart Page | |
* | |
* @author WooThemes | |
* @package WooCommerce/Templates | |
* @version 1.6.4 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
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
/* forms */ | |
/* ------------------------------------------------------------------------- */ | |
form { | |
/* | |
width: 95%; | |
margin: 20px auto; | |
*/ | |
} | |
input { |
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-page table.shop_table thead th { | |
background: black; | |
color:white; | |
text-transform: uppercase; | |
} | |
.woocommerce-cart form.shipping_calculator { | |
width: 50% !important; | |
} | |
.woocommerce-cart form.shipping_calculator input { | |
border: none; |
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(get_field('slideshow_images')): ?> | |
<?php while(the_repeater_field('slideshow_images')): ?> | |
<?php $image = wp_get_attachment_image_src(get_sub_field('image_file'), 'full'); ?> | |
<img src="<?php echo $image[0]; ?>" alt="" /> | |
<?php endwhile; ?> | |
<?php endif; ?> |