Skip to content

Instantly share code, notes, and snippets.

View kontikidigital's full-sized avatar

Kontiki Digital kontikidigital

View GitHub Profile
@kontikidigital
kontikidigital / archive-portfolio.php
Last active August 29, 2015 14:07
Portfolio con imagen que muestra el título y extracto al hacer hover
<?php
/**
* Portfolio Archive
* Author: Sridhar Katakam
*
*/
//* Add portfolio body class to the head
add_filter( 'body_class', 'sk_add_portfolio_body_class' );
function sk_add_portfolio_body_class( $classes ) {
@kontikidigital
kontikidigital / functions.php
Last active April 29, 2017 16:46
Center header image logo in Genesis
<?php
//* Do NOT include the opening php tag
//* Paste this code in your Genesis Child Theme functions.php
/* Header
---------------------------------------------------------------------------------------------------- */
/* Remove Header Widget Area for centered logo
--------------------------------------------- */
unregister_sidebar( 'header-right' );
@kontikidigital
kontikidigital / functions.php
Created October 23, 2014 11:32
Create a Footer or tertiary Menu
<?php
//do not add in opening php tag
/**
* Add in Footer or Tertiary Menu
*
* @package Genesis Teriary Menu
* @author Neil Gee
* @link http://coolestguidesontheplanet.com/add-footer-menu-genesis-child-theme/
* @copyright (c)2014, Neil Gee
@kontikidigital
kontikidigital / functions.php
Created October 27, 2014 15:43
Remove Woothemes/WP Overnight/IgniteWoo updater notice
// Remove WooCommerce Updater
remove_action('admin_notices', 'woothemes_updater_notice');
// Remove WP Overnight Updater
remove_action('admin_notices', 'wpo_updater_notice');
// Remove IgniteWoo Updater
remove_action('admin_notices', 'ignitewoo_updater_notice');
@kontikidigital
kontikidigital / plugin.php
Created October 28, 2014 17:41
Functionality Plugin Template
<?php
/*
Plugin Name: Functionality plugin name
Description: Plugin Description
Version: 0.1
License: GPL
Author: Max Terbeck (TargetIMC)
Author URI: http://targetimc.com
*/
@kontikidigital
kontikidigital / tgt-magento-subscribers.php
Last active March 2, 2018 14:41
Export Magento Newsletter Subscribers
<?php
/*
Extension Name: Magento CSV Export Newsletter Subscribers
Description: Export a list of subscribers of the Magento Newsletter in CSV format
Version: 0.1
License: GPL
Author: TargetIMC
Author URI: http://targetimc.com
*/
/* Paste this file in root directory and run it manually*/
@kontikidigital
kontikidigital / front-page.php
Created November 26, 2014 17:30
Creating a custom widgetized Front page in Genesis
<?php
/**
* This file adds the Home Page to the Executive Pro Theme.
*
* @author TargetIMC
* @package Generate
* @subpackage Customizations
*/
add_action( 'genesis_meta', 'targetimc_home_genesis_meta' );
@kontikidigital
kontikidigital / front-page.php
Last active August 29, 2015 14:11
Genesis Horizontal Opt-In using eNews Extended plugin
/*Display the Opt-In widget in Front Page*/
echo '<div id="opt-in-wrap">';
genesis_widget_area( 'horizontal-opt-in', array(
'before' => '<div class="horizontal-opt-in widget-area"><div class="wrap">',
'after' => '</div></div>',
) );
echo '</div>';
@kontikidigital
kontikidigital / line-under-widget-title
Created January 23, 2015 21:34
Add a line under widget title
/*Add a line under widget title*/
.aboutme-title .widget-title:after,
.aboutme-title .entry-title:after {
background: #fff; /* change bg color, obviously */
content: "";
display: block;
height: 2px;
width: 15%;
position: relative;
top: 5px;
@kontikidigital
kontikidigital / line-under-entry-title
Created January 25, 2015 17:52
line under entry title
#content .entry-title:after {
background: #FFFF00; /* change bg color, obviously */
content: "";
display: block;
height: 2px;
min-width: 100%;
position: relative;
top: 10px;
}