garethjmsaunders / wp-divi-customise-project

Change the WordPress Divi theme projects custom post type to anything you want
GNU General Public License v3.0
10 stars 9 forks source link

Strange behaviour with the Divi library #1

Closed YesPapa closed 1 week ago

YesPapa commented 8 years ago

Hi,

It seems that the script blocks the access to the Divi library after the last releases.

Thank you.

YesPapa commented 8 years ago

You have to remove this lines to be compatible with the new Divi theme:

`$labels = array( 'name' => _x( 'Layouts', 'Layout type general name', 'Divi' ), 'singular_name' => _x( 'Layout', 'Layout type singular name', 'Divi' ), 'add_new' => _x( 'Add New', 'Layout item', 'Divi' ), 'add_new_item' => ( 'Add New Layout', 'Divi' ), 'edit_item' => __( 'Edit Layout', 'Divi' ), 'new_item' => ( 'New Layout', 'Divi' ), 'all_items' => ( 'All Layouts', 'Divi' ), 'view_item' => __( 'View Layout', 'Divi' ), 'search_items' => ( 'Search Layouts', 'Divi' ), 'not_found' => __( 'Nothing found', 'Divi' ), 'not_found_in_trash' => __( 'Nothing found in Trash', 'Divi' ), 'parent_item_colon' => '', );

$args = array( 'labels' => $labels, 'public' => false, 'can_export' => true, 'query_var' => false, 'has_archive' => false, 'capability_type' => 'post', 'hierarchical' => false, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments', 'revisions', 'custom-fields' ), );

register_post_type( 'et_pb_layout', apply_filters( 'et_pb_layout_args', $args ) );`

garethjmsaunders commented 8 years ago

Is it not working for you? I have it working fine on one of my client sites: http://www.pittenweemproperties.com/properties/

YesPapa commented 8 years ago

The slug/script works but that causes an issue to access the Divi library. They have a thread on the Divi forum about it.

garethjmsaunders commented 8 years ago

Do you mean the "Add from Library" option beneath each section?

Save to Library and Load from Library both work for me.

YesPapa commented 8 years ago

Nope. It is the "Divi Library" wordpress menu at the bottom of the sidebar menu.

jdolan18 commented 7 years ago

Do we need to remove all of that code that you listed above or just a portion of it?

garethjmsaunders commented 4 months ago

WEB—Fix wp-divi-customise-project

garethjmsaunders commented 1 week ago

I have rewritten this plugin from the ground up. It will be available shortly.

I've just tested this with the latest version of Divi v4.27.1 and my new plugin. It is working as expected.