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
/********Link-Klasse****/ | |
a.download-button { | |
color: #fff !important; | |
background: #c8504b; | |
padding: 10px 20px; | |
border-radius: 2px; | |
margin: 5px; | |
} | |
/****** angewendeter Code auf alle Links, die nicht .fy-button als Klasse haben ***/ |
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 | |
// Automatically convert permalinks to PDFs in search results to the PDF itself, not the Attachment page | |
add_filter( 'the_permalink', function( $permalink ) { | |
global $post; | |
if ( is_search() && 'application/pdf' == get_post_mime_type( $post->ID ) ) { | |
// if the result is a PDF, link directly to the file not the attachment page | |
$permalink = wp_get_attachment_url( $post->ID ); | |
} |
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
* | |
!/memberpress-de_DE.* |
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 | |
/** | |
* Plugin Name: Allow SVG uploads | |
* Description: Enable the users of your blog to upload SVG files | |
* Version: 1.0.0 | |
* Author: Bernhard Kau | |
* Author URI: https://kau-boys.de | |
* License: GPLv3 | |
* License URI: http://www.gnu.org/licenses/gpl-3.0 | |
*/ |
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 | |
/** | |
* Plugin Name: Deactivate Full Size Image Links | |
* Description: Deactivates the links to the media file when using the full site image in a gallery shortcode | |
* Version: 1.0.0 | |
* Author: Bernhard Kau | |
* Author URI: https://kau-boys.de | |
* License: GPLv3 | |
* License URI: http://www.gnu.org/licenses/gpl-3.0 | |
*/ |
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 | |
/** | |
* Plugin Name: WP Tag Cloud Tag Number | |
* Description: This plugin will limit the number of the shown tags to a custom number | |
* Version: 1.0.0 | |
* Author: Bernhard Kau | |
* Author URI: https://kau-boys.de | |
* License: GPLv3 | |
* License URI: http://www.gnu.org/licenses/gpl-3.0 | |
*/ |
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
jQuery( document ).ready( function( $ ) { | |
$( 'form' ).submit( function() { | |
$( this ).attr( 'data-touched', true ); | |
} ); | |
$( ':submit' ).click( function() { | |
$( this ).closest( 'form' ).attr( 'data-touched', true ); | |
} ); |
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 | |
/** | |
* Plugin Name: Disable Cachify on home page | |
* Description: This plugin simple disables the caching of the home page with Cachify (see https://wordpress.org/support/topic/exclude-home-page-from-being-cached) | |
* Author: Bernhard Kau | |
* Author URI: https://kau-boys.de | |
*/ | |
add_filter( | |
'cachify_skip_cache', |