The Definitive Guide to Setting Up WordPress in 2024: A Bristol Freelance Web Developer’s Essential Setup
In the ever-evolving landscape of website development, staying ahead of the curve...
Fed up of getting the W3 Validator warning “The type attribute is unnecessary…”?
Here is a handy bit of code to remove the type attributes (and anything else) from WordPress. Add this to your functions.php file and customise. Then you’re good to go!
add_action( 'template_redirect', function(){
ob_start( function( $buffer ){
$buffer = str_replace( array( '', "" ), '', $buffer );
// Also works with other attributes...
$buffer = str_replace( array( '', "" ), '', $buffer );
$buffer = str_replace( array( '', "" ), '', $buffer );
$buffer = str_replace( array( '', "" ), '', $buffer );
return $buffer;
});
});
Coding Tips, Wordpress, Wordpress Function, WordPress Tips
Share
In the ever-evolving landscape of website development, staying ahead of the curve...
In the digital realm, your website serves as the cornerstone of your...
In the ever-evolving world of e-commerce, having a robust and flexible platform...
I came across this when looking for a purpose built, fully customisable calendar - https://fullcalendar.io/ Im just starting to work with...
To exclude draft posts from appearing in the ACF Relationship field, add this code to your functions.php file. All you...
In today's digital age, having a strong online presence is crucial for businesses. When it comes to building a website,...