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 | |
// Yoast SEO Score column fix | |
add_action('admin_head', 'bloggerpilot_fix_yoast_score_column'); | |
function bloggerpilot_fix_yoast_score_column() { | |
echo '<style>#wpseo-score {float: unset;margin: unset;}</style>'; | |
echo '<style>.column-ppc_checklist{width: 12%;}</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
define('ALLOW_UNFILTERED_UPLOADS', true); |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
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
/* | |
* Create Timeline Block with the Kadence Icon List Block | |
* See: https://bloggerpilot.com/timeline-css/ | |
*/ | |
.timeline li { | |
list-style: none; | |
padding-bottom: 1.8rem !important; | |
border-left: 1px dotted #897B76; | |
position: relative; |
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 | |
// Allow SVG usage in WordPress | |
function bloggerpilot_cc_mime_types($mimes) { | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter('upload_mimes', 'bloggerpilot_cc_mime_types'); |
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 | |
// Add alt tag to WordPress Gravatar images | |
// Full how-to: https://bloggerpilot.com/gravatar-alt-tag/ | |
function bloggerpilot_gravatar_alt($bloggerpilotGravatar) { | |
if (have_comments()) { | |
$alt = get_comment_author(); | |
} | |
else { | |
$alt = get_the_author_meta('display_name'); |
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 | |
/** | |
* Template Name: something | |
* | |
* @package kadence | |
*/ | |
namespace Kadence; | |
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 | |
/** | |
* Template Name: Tools | |
* | |
* @package kadence | |
*/ | |
namespace Kadence; | |
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 | |
/* | |
* WordPress: Remove unwonted image sizes. | |
* In this code I remove the three sizes medium_large, 1536x1536, 2048x2048 | |
* See full article: | |
*/ | |
add_filter('intermediate_image_sizes', function($sizes) { | |
return array_diff($sizes, ['medium_large']); // Medium Large (768 x 0) |
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 | |
// Find the description at https://bloggerpilot.com/en/gutenberg-for-woocommerce/ | |
// Disable new WooCommerce product template (from Version 7.7.0) | |
function bp_reset_product_template($post_type_args) { | |
if (array_key_exists('template', $post_type_args)) { | |
unset($post_type_args['template']); | |
} | |
return $post_type_args; | |
} |