Skip to content

Instantly share code, notes, and snippets.

View dompascal's full-sized avatar

Dominic Pascal dompascal

View GitHub Profile
@dompascal
dompascal / ssh-change-owner-and-group-in-current-folder
Created November 27, 2013 21:57
SSH - Change owner & group of all file in current folder
chown -R username *
chgrp -R group *
@dompascal
dompascal / remove-p-tag-from-category-description.php
Created December 5, 2013 16:52
Remove P tag from category description function.
remove_filter('term_description','wpautop');
@dompascal
dompascal / archive-product.php
Created December 5, 2013 19:01
Woocommerce Archive Product Template
<?php
/**
* The Template for displaying product archives, including the main shop page which is a post type archive.
*
* Override this template by copying it to yourtheme/woocommerce/archive-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.0.0
*/
@dompascal
dompascal / content-product.php
Created December 5, 2013 19:03
Woocommerce Content Product Template
<?php
/**
* The template for displaying product content within loops.
*
* Override this template by copying it to yourtheme/woocommerce/content-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
@dompascal
dompascal / single-product.php
Created December 5, 2013 19:04
Woocommerce Single Product Template
<?php
/**
* The Template for displaying all single products.
*
* Override this template by copying it to yourtheme/woocommerce/single-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
@dompascal
dompascal / category-loop-number-of-posts.php
Created December 6, 2013 10:20
Set the number of posts in the category loop.
<?php
global $query_string;
query_posts( $query_string . '&posts_per_page=15' );
?>
@dompascal
dompascal / woocommerce-overide.css
Created December 6, 2013 11:00
Woocommerce CSS overide
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
margin: 0 10px 10px 0 !important;
width: 32% !important;
}
.woocommerce ul.products li.first, .woocommerce-page ul.products li.first {
clear: none !important;
}
.woocommerce ul.products li.product a img, .woocommerce-page ul.products li.product a img {
margin: 0 !important;
}
@dompascal
dompascal / woocommerce-product-archive-and-view.css
Created December 6, 2013 11:52
Woocommerce Product Archive/View CSS
/* product archive */
/* ------------------------------------------------------------------------- */
body.archive ul.products li .details {
position: absolute;
bottom:0;
left:0;
width: 100%;
height: 30px;
line-height: 30px;
@dompascal
dompascal / ee-html-header-templatre.php
Created December 6, 2013 11:53
EE - HTML Header Template
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<title>{site_name}</title>
<meta charset="UTF-8">
@dompascal
dompascal / ee-html-footer-template.php
Created December 6, 2013 12:00
EE - HTML Footer Template