Skip to content

Instantly share code, notes, and snippets.

@eslucky
eslucky / wpgmza.php
Created January 4, 2016 16:01
WP Google Maps change column heading from "title" to "retailer" for Lucid Oils - The change I have made can be found at line 444 (approx.) of the 'wpgmza.php' file ('wp-google-maps-pro/wpgmza.php'): Where "Retailer" can be altered to your preferred value.
if (isset($hide_title_column) && $hide_title_column == "yes") { } else { $wpgmza_tmp_head .= " <th class='wpgmza_table_title'><strong>".__("Retailer","wp-google-maps")."</strong></th>"; }
@eslucky
eslucky / gist:70fc0d02a5c67a84d736
Created July 6, 2014 22:38
Yoast WordPress SEO XML Sitemap not working Fix
# WordPress SEO - XML Sitemap Rewrite Fix
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
RewriteRule ^locations.kml$ /index.php?sitemap=wpseo_local_kml [L]
RewriteRule ^geo_sitemap.xml$ /index.php?sitemap=geo [L]
RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
# END WordPress SEO - XML Sitemap Rewrite Fix<br>
//* Add Soliloquy slider above .site-header
add_action( 'genesis_before_header', 'sk_home_slider' );
function sk_home_slider() {
if ( function_exists( 'soliloquy_slider' ) ) soliloquy_slider( 'home-slider' );
}
@eslucky
eslucky / gist:65bff6a344d34e9b702f
Created June 6, 2014 14:53
Pull Featured Image on Pages Only with Genesis Simple Hooks
<?php
if( is_page() ) {
genesis_image(
array(
'format' => 'html',
'size' => 'full',
'num' => 0,
'attr' => array( 'class' => 'feature' )
)
);