Title: editor width not working for CPT
Last modified: June 20, 2022

---

# editor width not working for CPT

 *  [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/)
 * Hello, for some reason, editor width is not applied to CPT – when I edit one,
   I see one second large width and it changes to narrow width. It works for pages
   and posts.

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

 *  Plugin Author [Rouergue Création](https://wordpress.org/support/users/rock4temps/)
 * (@rock4temps)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15761587)
 * Hello,
    Tested with version 2.8.3 updated this weekend, editor width works for
   CPTs. The link below allows you to download the display-slug-CPT file whose code
   is that of the Editor Custom Color Palette extension. This code is to be put 
   in the functions.php file of a child theme. it will display directly in Front
   end the slugs of the CPTs of your site. Check that your CPT slug is present. 
   If so, the editor width should work for CPTs. To be confirmed for example with
   the extension: Find My Custom Post Types.
 * [Display slug CPT](https://drive.google.com/file/d/111ZHDQW_J5MRC4cbvglqjEWmdob0MfBN/view?usp=sharing)
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15762090)
 * I have an error with your code but as I have other custom post types, I checked
   them and width is correct.
    The one with the problem is the only one managed 
   by [https://wordpress.org/plugins/custom-post-type-ui/](https://wordpress.org/plugins/custom-post-type-ui/)
 *  Plugin Author [Rouergue Création](https://wordpress.org/support/users/rock4temps/)
 * (@rock4temps)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15762145)
 * Please take a screenshot of your error with the CPT UI extension
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15763600)
 * The error
 * `Une erreur de type E_COMPILE_ERROR a été causée dans la ligne 9 du fichier /
   home/xxx/www/li-an/blog/wp-content/themes/blocksy-child/functions.php. Message
   d’erreur : Cannot redeclare eccp_get_registered_post_types() (previously declared
   in /home/jmmeyer00/www/li-an/blog/wp-content/plugins/editor-custom-color-palette/
   editor-custom-color-palette.php:12692)`
 *  Plugin Author [Rouergue Création](https://wordpress.org/support/users/rock4temps/)
 * (@rock4temps)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15763884)
 * hello, sorry display-slug-CPT.php updated to correct your error. code to replace
   with this new one in your function.php file
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15764364)
 * Code missing ?
 *  Plugin Author [Rouergue Création](https://wordpress.org/support/users/rock4temps/)
 * (@rock4temps)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15764984)
 * here is the new link of modified display-slug-CPT.php file, tested OK
 * [Display Slug](https://drive.google.com/file/d/1_MEWlufKGljHW_7Qu6K1CEH7Xq-VVIsL/view?usp=sharing)
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15765033)
 * Here is the message
    `Array ( [comic] => comic [portfolio] => portfolio )`
 * the one with the problem is **portfolio**
 *  Plugin Author [Rouergue Création](https://wordpress.org/support/users/rock4temps/)
 * (@rock4temps)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15765432)
 * The CPT portfolio is established with the CPT UI extension, right?
 * I have the haibtude to establish my CPT with code, so I will create the same 
   CPT with CPT UI and I look if there is a problem.
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15765525)
 * That’s right :portfolio CPT is managed by CPT UI. It’s the first time I use it
   and it’s quite convenient.
 *  Plugin Author [Rouergue Création](https://wordpress.org/support/users/rock4temps/)
 * (@rock4temps)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15766415)
 * Hello,
 * I created a custom post type with CPT UI and the OceanWP theme.
    The width parameter
   is functional.
 * either you have a theme or CPT UI configuration problem
 * Check that you have activated REST API with the “show in rest” parameter for 
   proper functioning of Gutenberg.
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15767053)
 * I may try on a test site. Thanks for your support. Theme is Blocksy but as it
   works for other CPT, no reason it won’t work for this one. I don’t close the 
   thread if I find a solution but I won’t bother you more.

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

The topic ‘editor width not working for CPT’ is closed to new replies.

 * ![](https://ps.w.org/editor-custom-color-palette/assets/icon-256x256.png?rev=
   2562588)
 * [Editor Custom Color Palette](https://wordpress.org/plugins/editor-custom-color-palette/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/editor-custom-color-palette/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/editor-custom-color-palette/)
 * [Active Topics](https://wordpress.org/support/plugin/editor-custom-color-palette/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/editor-custom-color-palette/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/editor-custom-color-palette/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [Li-An](https://wordpress.org/support/users/li-an/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/editor-width-not-working-for-cpt/#post-15767053)
 * Status: not resolved