WPIntell

Source evidence

editor width not working for CPT

Editor Custom Color Palette · support · 2022-06-20T07:39:00+00:00

complaintsentiment
mediumseverity
0.93relevance
12replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 31 rows with source links

9.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Li-An unresolved
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. 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 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/ Please take a screenshot of your error with the CPT UI extension 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) hello, sorry display-slug-CPT.php updated to correct your error. code to replace with this new one in your function.php file Code missing ? here is the new link of modified display-slug-CPT.php file, tested OK Display Slug Here is the message Array ( [comic] => comic [portfolio] => portfolio ) the one with the problem is portfolio 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. That’s right :portfolio CPT is managed by CPT UI. It’s the first time I use it and it’s quite convenient. 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. 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.

Comments

12 shown
Rouergue Création 2022-06-22T17:21:00+00:00

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

Li-An 2022-06-22T19:58:00+00:00

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/

Rouergue Création 2022-06-22T20:23:00+00:00

Please take a screenshot of your error with the CPT UI extension

Li-An 2022-06-23T09:30:00+00:00

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)

Rouergue Création 2022-06-23T10:48:00+00:00

hello, sorry display-slug-CPT.php updated to correct your error. code to replace with this new one in your function.php file

Li-An 2022-06-23T13:00:00+00:00

Code missing ?

Rouergue Création 2022-06-23T15:41:00+00:00

here is the new link of modified display-slug-CPT.php file, tested OK Display Slug

Li-An 2022-06-23T15:52:00+00:00

Here is the message Array ( [comic] => comic [portfolio] => portfolio ) the one with the problem is portfolio

Rouergue Création 2022-06-23T17:58:00+00:00

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.

Li-An 2022-06-23T18:46:00+00:00

That’s right :portfolio CPT is managed by CPT UI. It’s the first time I use it and it’s quite convenient.

Rouergue Création 2022-06-24T05:43:00+00:00

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.

Li-An 2022-06-24T09:31:00+00:00

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.