Title: Exclude &#8220;WP Block Code&#8221; from Translation
Last modified: July 22, 2023

---

# Exclude “WP Block Code” from Translation

 *  Resolved [iwebdev](https://wordpress.org/support/users/iwebdev/)
 * (@iwebdev)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/exclude-wp-block-code-from-translation/)
 * [https://prnt.sc/jkGMzfeHplI7](https://prnt.sc/jkGMzfeHplI7)
   How to add **WP 
   Block Code** to “Exclude selectors only from automatic translation” so that none
   of these wp blocks get translated.Is this right: [https://prnt.sc/USjGiEShrvKD](https://prnt.sc/USjGiEShrvKD)
   PLS HELP!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Denis](https://wordpress.org/support/users/sdenis/)
 * (@sdenis)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/exclude-wp-block-code-from-translation/#post-16917077)
 * Hello,
 * To exclude WP Block Code from translation in TranslatePress, you will need to
   get the selector for that block and add it to the “Exclude selectors only from
   automatic translation” option.
 * In your case, it seems that the selector for the WP Block Code is “.wp-block-
   code” (without the quotes). To add it to the exclusion list, follow these steps:
 * 1. Go to your WordPress Admin Dashboard.
   2. Navigate to TranslatePress > Settings.
   3. Click on the “General” tab.4. Scroll down to the “Exclude selectors only from
   automatic translation” section.5. In the input field, enter “.wp-block-code” (
   without the quotes) and click the “Save Changes” button.
 * Please note that if the WP Block Code has a different class or ID, you will need
   to use that as the selector instead. Remember to put a dot (.) before the class
   name or a hashtag (#) before the ID.
   (you can find that class or ID using the
   Inspect tool from your browser).
 * If you have any further questions, feel free to ask.
 * Kind regards,
 *  Thread Starter [iwebdev](https://wordpress.org/support/users/iwebdev/)
 * (@iwebdev)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/exclude-wp-block-code-from-translation/#post-16917189)
 * **PERFECTLY! Worked!** 🙂
    -  This reply was modified 2 years, 10 months ago by [iwebdev](https://wordpress.org/support/users/iwebdev/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Exclude “WP Block Code” from Translation’ is closed to new replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [iwebdev](https://wordpress.org/support/users/iwebdev/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/exclude-wp-block-code-from-translation/#post-16917189)
 * Status: resolved