This file contains hidden or 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
add_filter('genesis_noposts_text', 'sg_noposts_text'); | |
function sg_noposts_text($text) | |
{ | |
$text = '<span class="noposts-text">' . __('Ups, didn´t find any posts.', 'sg') . '</span>'; | |
return $text; | |
} |
This file contains hidden or 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
//* Customize the color of ACE commented code, change it to grey | |
add_action('admin_head', 'custom_ace_css'); | |
function custom_ace_css() { | |
echo '<style> | |
.ace-tm .ace_comment { | |
color: #b2b2b2; | |
} | |
</style>'; | |
} |
This file contains hidden or 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 | |
/* | |
* Plugin Name: Disable wpautop | |
* Plugin URI: https://grahamwalters.me/2014/03/07/disable-wpautop-on-specific-postspages/ | |
* Author: Graham Walters | |
* Author URI: https://grahamwalters.me | |
* Version: 1.1 | |
* Description: Disable wpautop on posts/pages with custom field 'wpautop' == false. | |
*/ |
This file contains hidden or 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
add_filter( 'manage_media_columns', 'sk_media_columns_url' ); | |
/** | |
* Filter the Media list table columns to add a URL column. | |
* | |
* @param array $posts_columns Existing array of columns displayed in the Media list table. | |
* @return array Amended array of columns to be displayed in the Media list table. | |
*/ | |
function sk_media_columns_url( $posts_columns ) { | |
$posts_columns['media_url'] = 'URL'; | |
return $posts_columns; |
This file contains hidden or 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
jQuery(document).ready(function($) { | |
$(".accordion h3").click(function() { | |
// For active header definition | |
$('.accordion h3').removeClass('active'); | |
$(this).addClass('active'); | |
// Accordion actions | |
if($(this).next("div").is(":visible")){ | |
$(this).next("div").slideUp(400); | |
$(this).removeClass('active'); |
This file contains hidden or 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
// A simple jQuery accordion | |
(function($) { | |
// run the accordion | |
var allPanels = $('.accordion .content').hide(); | |
var heads = $('.accordion header'); | |
$('header').on('click', function() { | |
$this = $(this); | |
$target = $this.parent().find('div'); | |
if(!$target.hasClass('active')){ | |
heads.removeClass('selected'); |
This file contains hidden or 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
.ez-home .site-inner, #home-hook-wrap, #home-hook-wrap, | |
#ez-home-top-container, #ez-home-middle-container, #ez-home-bottom-container { | |
max-width: 100%; | |
padding:0; | |
} | |
#ez-home-top-container .ez-home-wrap, #ez-home-middle-container .ez-home-wrap, #ez-home-bottom-container .ez-home-wrap { | |
float:none; | |
margin: 0 auto; | |
padding: 50px 20px; | |
} |