This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Use this button code in your Home Section 1 text widget to point to your Real Music Rocks section: --> | |
<a class="button" href="#" data-section="home-section-2">Continue Reading</a> | |
<!-- Use this button code in the Home Section 2 text widget to point to the Your Favorite Songs Matter section: --> | |
<a class="button" href="#" data-section="home-section-3">Continue Reading</a> | |
<!-- Use this button code in the Home Section 3 text widget to point to the Event Schedule section: --> | |
<a class="button" href="#" data-section="home-section-4">Event Schedule</a> | |
<!-- Finally, you can use this button code in the Footer 1 text widget to send visitors to your contact page: --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Add hAtom data to all posts and pages | |
function sp_hatom_data($content) { | |
$t = get_the_modified_time('F jS, Y'); | |
$author = get_the_author(); | |
$title = get_the_title(); | |
$content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>'; | |
return $content; | |
} | |
add_filter('the_content', 'sp_hatom_data'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change the post order for listings | |
* | |
* @author Carrie Dils | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
* @reference http://codex.wordpress.org/Class_Reference/WP_Query | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Copy everything except for this first line | |
// Favicons generated by realfavicongenerator.net | |
// These should be added in wp-content/themes/child-theme/images/favicons/ | |
remove_action('wp_head', 'genesis_load_favicon'); | |
add_action('wp_head', 'custom_favicon'); | |
function custom_favicon(){ | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $wp_current_filter; | |
// Don't process this shortcode in wp_head. This typically happens if a plugin author | |
// uses apply_filters( 'the_content', $content ) for the meta description tag output, | |
// instead of using strip_shortcodes() like a sane person. Processing shortcodes in | |
// the head might be undesirable if your shortcode counts the number of times it's | |
// been used for the purpose of outputting unique class names or IDs, for example. | |
if ( in_array('wp_head', $wp_current_filter) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Force the Page Builder plugin to include 'simple-social-icons' in its widget wrapper class | |
add_filter( 'siteorigin_panels_widget_classes', 'ssi_add_widget_class' ); | |
function ssi_add_widget_class( $classes ) { | |
if ( in_array( 'widget_simple-social-icons', $classes ) ) { | |
$classes[] = 'simple-social-icons'; | |
} | |
return $classes; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Remove the opening PHP tag before pasting to functions.php | |
add_filter( 'agentpress_property_details', 'custom_agentpress_property_details_filter' ); | |
// Filter the property details array for property listings | |
// Replace labels such as "ZIP" with "Postcode" etc. | |
function custom_agentpress_property_details_filter( $details ) { | |
$details['col1'] = array( | |
__( 'Price:', 'apl' ) => '_listing_price', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /srv/salt/php/init.sls | |
php: | |
pkgrepo.managed: | |
- ppa: skettler/php # https://launchpad.net/~skettler/+archive/php/+packages | |
- require_in: | |
- pkg: php | |
pkg.installed: | |
- name: php52 | |
- version: 5.2.17~precise~ppa19 |