# Remove the "Designed with WordPress" Footer Credit

> Removes the "Designed with WordPress" or "Powered by WordPress" credit line from the footer of default block themes like Twenty Twenty-Four and Twenty Twenty-Five, without editing the template.

- Type: PHP
- Runs: Frontend only
- Category: [Block Editor](https://wpide.com/library/category/gutenberg/)
- Tags: footer, block-themes, credit
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/remove-block-theme-footer-credit/

## Code

```php
// Credit phrases to remove (case-insensitive).
$wpide_credit_phrases = array( 'Designed with', 'Powered by', 'Proudly powered by' );

add_filter( 'render_block_core/paragraph', function ( $content ) use ( $wpide_credit_phrases ) {
    if ( false === stripos( $content, 'wordpress.org' ) ) {
        return $content;
    }

    $text = wp_strip_all_tags( $content );

    foreach ( $wpide_credit_phrases as $phrase ) {
        if ( false !== stripos( $text, $phrase ) && false !== stripos( $text, 'WordPress' ) && strlen( $text ) < 120 ) {
            return '';
        }
    }

    return $content;
} );
```

## Notes

Matches paragraphs containing one of the phrases and a link to wordpress.org. Add your theme's wording to the list if it differs.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Remove the "Designed with WordPress" Footer Credit" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
