How to edit Zelle Portfolio in Gutenberg
Important notice: This product is now in maintenance mode and is no longer being actively developed or supported. Updates and bug fixes will not be provided unless they relate to security concerns.
Zelle Pro has a custom post type called project. This type of post is displayed in the portfolios section.
In order to edit them with Gutenberg instead of the classic WordPress editor, you need to create a child theme and add a code snippet in one the files.
1) Create a child theme for Zelle Pro by following this guide.
2) Add the following code at the end of the functions.php file within the child theme created on the previous step.
function zelle_create_post_type() {<br> /* portfolio */<br> register_post_type(<br> 'portofolio',<br> array(<br><br> 'labels' => array(<br><br> 'name' => __( 'Portfolio', 'zerif' ),<br><br> 'singular_name' => __( 'Portfolio', 'zerif' ),<br><br> ),<br><br> 'public' => true,<br><br> 'has_archive' => true,<br><br> 'taxonomies' => array( 'category' ),<br><br> 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ),<br><br> 'show_ui' => true,<br><br> 'menu_icon' => 'dashicons-format-gallery',<br><br> 'rewrite' => array(<br> 'slug' => 'portfolio',<br> ),<br> 'show_in_rest' => true,<br><br> )<br> );<br>}<br>remove_action( 'init', 'zerif_create_post_type', 10 ); add_action( 'init', 'zelle_create_post_type', 11 );<br>
That's it.
If you need further assistance, feel free to contact us by opening a technical support ticket here.