Skip to content

Instantly share code, notes, and snippets.

View kontikidigital's full-sized avatar

Kontiki Digital kontikidigital

View GitHub Profile
@kontikidigital
kontikidigital / functions
Created January 25, 2015 18:18
Genesis: Remove Post Meta in Entry Footer site-wide excerpt on static Pages.
//* Remove Post Meta from entry Footer
add_action( 'genesis_entry_content', 'tgt_remove_post_meta' );
/**
* Remove Post Meta in Entry Footer site-wide excerpt on static Pages.
*
* @author Sridhar Katakam
* @link http://sridharkatakam.com/remove-post-meta-entry-footer-genesis/
*/
function tgt_remove_post_meta() {
if ( is_singular( 'page' ) ) {
@kontikidigital
kontikidigital / style
Last active June 23, 2019 10:36
Genesis: Add a separator between menu items in site header
/* Add a separator between menu items in site header */
.site-header ul.menu > li a {
display: inline-block;
vertical-align: middle;
}
.site-header ul.menu > li:after {
content: "|";
font-size: 0.9em;
}
@kontikidigital
kontikidigital / functions
Created January 25, 2015 20:25
Genesis: Customize Read More Link as a Button
//* Customize Read More Link
add_filter( 'the_content_more_link', 'customize_wp_read_more_link' );
function customize_wp_read_more_link() {
return '<a class="more-link" href="' . get_permalink() . '">' . __( 'Read More', 'tgt-theme' ) . '</a>';
}
@kontikidigital
kontikidigital / style
Created January 25, 2015 20:27
Genesis: Use Image Button with Genesis eNews Extended
/*Use Image Button with Genesis eNews Extended*/
.enews-widget #subbutton {
transition: none;
text-decoration: none !important;
padding: 0px;
margin-top: 1em;
border: none;
display: block;
color: #FFFFFF !important;
@kontikidigital
kontikidigital / Magmi Settings
Last active January 13, 2017 06:11
Magento: Magmi Setting
Visibility
The way to go for column “visibility” is as follows:
1 = Not Visible Individually
2 = Catalog
3 = Search
4 = Catalog, Search
Delete Products
Activate Magmi Deleter Plugin
"sku","magmi:delete"
@kontikidigital
kontikidigital / uninstall-module
Last active August 29, 2015 14:14
Magento: Unistall Module
Uninstall Magento Module
http://www.host1plus.com/tutorials/cms-tutorials/magento/magento-installation/how-to-uninstall-module-without-magento-connect-manager/
There is a way to uninstal module without Magento connect manager by setting their active flags to false values in “app/etc/modules/” directory. If we will check this directory we will find lots of .xml based files that are storing various settings for Magento modules.
As we may notice there are line containing <active>true</active>
which is responsible for defining whether module is in the active state or not. In order to change the state to disabled, we can simply replace “true” with “false” and save the file. After that we can just go to modules directory and delete required module files. In the case there was any information stored in the database which is related to that module, it might be worth to delete such records as well.
@kontikidigital
kontikidigital / hidden-fields-box
Created February 2, 2015 17:22
Genesis: Enews Extended Accept TOS Checkbox
<input type="checkbox" required name="terms"> I accept the Terms and Conditions</input>
@kontikidigital
kontikidigital / style.css
Created February 3, 2015 18:14
Genesis: Horizontal Menu in Footer
/* Customize Footer Menu */
.footer-widgets li {
display: inline-block;
border-bottom: none;
margin-bottom: 10px;
padding-bottom: 10px;
}
.footer-widgets ul.menu > li a {
display: inline-block;
vertical-align: middle;
@kontikidigital
kontikidigital / personalizables
Last active February 23, 2016 11:20
Magmi: Importar productos personalizables
Agregar una columna al final del Excel
http://wiki.magmi.org/index.php?title=Custom_Options
(0) Opcional
(1) Obligatorio
Para un campo de texto:
FILA TITULO: Texto:field:1:1 (el segundo 1 define el orden, ante la duda poner siempre 1)
FILA PRODUCTO: :fixed:0::35 (35 es el número de caracteres)
FILA PRODUCTO: :fixed:0.5::35 (con inremento de 0.5 en precio)
@kontikidigital
kontikidigital / functions.php
Created February 14, 2015 20:52
Genesis: Header with Split Menu
/*
* Header with Split Menu
*/
//* Remove the Header Right widget area
unregister_sidebar( 'header-right' );
// Register Header Navigation Menu
register_nav_menu( 'header', 'Header Navigation Menu' );
// Add Theme Support for Genesis Menus