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 lines below into functions.php of your Divi child theme. | |
*/ | |
add_filter( 'et_contact_page_headers', 'mycopytosender', 10, 4 ); | |
function mycopytosender( $headers, $contact_name, $contact_email ) { | |
$headers[] = "Cc: \"{$contact_name}\" <{$contact_email}>"; | |
return $headers; | |
} |
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 Courseware frontend user sync | |
Description: Weist automatisch neue User in WordPress einem WP-Courseware-Kurs zu, die programmatisch erstellt werden. | |
*/ | |
defined( 'ABSPATH' ) || die(); | |
// Anpassen: Kurs-ID des WP-Courseware-Kurses || Assign your WPCW course ID here! | |
$wpc_course_id = 1; |
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 search field for Theme "Divi" (to close to other links: Pagespeed Insights). | |
* Requires the Autoptimze option "Minimize HTML" to be activated. | |
*/ | |
add_filter( 'autoptimize_html_after_minify', 'divi_remove_search' ); | |
function divi_remove_search( $content ) { | |
$content = preg_replace( | |
'/\<div class="et_search.*close_search_field"\>\<\/span\>\<\/div\>\<\/div\>/', |
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 | |
/** | |
* Youtube-Video verbieten, related vids am Ende anzuzeigen. | |
*/ | |
add_filter( 'oembed_dataparse', 'this_add_youtube_norel', 11, 3 ); | |
function this_add_youtube_norel( $return, $data, $url ) { | |
if( false !== strpos( $return, 'youtube.com' ) ) | |
return str_replace( '=oembed', '=oembed&rel=0', $return ); | |
else | |
return $return; |
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 into functions.php of your Avada child theme! | |
*/ | |
add_action( 'wp_ajax_fusion_content_to_elements', function(){ | |
@ini_set('memory_limit', '256M'); | |
}, 5 ); |
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: Fusion Core on Events | |
Description: Enables the ThemeFusion Core page builder on post type "tribe_events" of The Events Calendar | |
*/ | |
defined( 'ABSPATH' ) OR die(); | |
/** | |
* Enable Fusion Pagebuilder for post type "tribe_events" (The Events Calendar). |
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 | |
// Into front-page.php; exact location depends on the theme, e.g. just before sth. like: | |
// <div id="sidebar-footer" class="footer-widget-area clearfix" role="complementary"> | |
if ( is_active_sidebar( 'instagrid_full_width' ) ) : ?> | |
<div id="instagrid" class="site-content"> | |
<?php dynamic_sidebar( 'instagrid_full_width' ); ?> | |
</div><!-- #instagrid --> | |
<?php endif; ?> |
NewerOlder