Skip to content

Instantly share code, notes, and snippets.

View ajiseco's full-sized avatar

Ajiseco ajiseco

  • Orlando, Fl
View GitHub Profile
@ajiseco
ajiseco / Mage: CMS Category
Created March 14, 2014 20:50
Mage: CMS Category
{{block type="catalog/product_list" category_id="368" template="catalog/product/list-cat.phtml"}}
@ajiseco
ajiseco / WP: gallery.php
Created December 19, 2013 20:13
WP: gallery.php
@ajiseco
ajiseco / WP: If page
Created December 19, 2013 20:06
If page ID
<?php if (is_page('20')) { ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php } else { ?>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<?php } ?>
@ajiseco
ajiseco / WP: Config
Last active December 31, 2015 07:39
Custom config
# Disable revisions:
define('WP_POST_REVISIONS', false);
# Number of revisions:
define('WP_POST_REVISIONS', 2);
# Empty trash
define('EMPTY_TRASH_DAYS', 0 );
# Enables all core updates, including minor and major:
@ajiseco
ajiseco / CSS: Focus
Created December 8, 2013 04:50
CSS: focus
input {
-webkit-appearance: none;
-webkit-border-radius:0;
border-radius:0;
}
input:focus,
input:active {
outline: none;
outline: 0
@ajiseco
ajiseco / WP: Do_shortcode
Created December 6, 2013 03:12
Do shortcode
<?php echo do_shortcode( '[contact-form-7 id="1234" title="Contact form"]' ); ?>
@ajiseco
ajiseco / Term: Sudo
Created October 13, 2012 13:53
Su Command
sudo passwd root
sudo -s
sudo tcsh
@ajiseco
ajiseco / WP: current template
Last active October 11, 2015 11:48
Prints templete in use
<?php
global $template;
print_r($template);
?>
@ajiseco
ajiseco / WP: Plugin Header
Last active October 11, 2015 10:47 — forked from luetkemj/gist:2002921
Starter snippet
/*
Plugin Name:
Plugin URI: http://luetkemj.com/
Description:
Author: Mark Luetke
Author URI: http://luetkemj.com
Version: 1.0
*/
@ajiseco
ajiseco / WP: CSS
Last active October 11, 2015 10:38 — forked from luetkemj/style.css
Wordpress classes
/* =============================================================================
WordPress WYSIWYG Editor Styles
========================================================================== */
.entry-content img {
margin: 0 0 1.5em 0;
max-width: 100%;
height: auto;
}
.alignleft, img.alignleft {