Support » Themes » Kein Zugriff auf Divi Bibliothek

  • Hallo zusammen,
    mit dem Divi-Theme habe gute Erfahrungen gemacht. Leider erhalte ich die Meldung „Du bist leider nicht berechtigt, Beiträge dieses Inhaltstyps zu bearbeiten.“ wenn ich die Divi Bibliothek aufrufen will als Administrator.
    Ich nutze u.a. die Plugins „Admin Menu Editor Pro“ und „User Role Editor“ in den aktuellen Versionen. In beiden kann ich nichts finden was das angeht. Im Divi-Rolleneditor ist auch alles aktiviert.
    In der functions.php habe ich „Projekte“ umbenannt:

    <?php  
    
    function divi_child_styles() {
    wp_deregister_style( 'divi-style');
    wp_register_style('divi-style', get_template_directory_uri(). '/style.css');
    wp_enqueue_style('divi-style', get_template_directory_uri(). '/style.css');
    wp_enqueue_style( 'childtheme-style', get_stylesheet_directory_uri().'/style.css', array('divi-style') );
    }
    add_action( 'wp_enqueue_scripts', 'divi_child_styles' );
    
    function custom_post_name () {
    return array(
    'feeds' => true,
    'slug' => 'news',
    'slug' => 'Tourismus',
    'with_front' => false,
    );
    }
    add_filter( 'et_project_posttype_rewrite_args', 'custom_post_name' );
    
    /*Translation for Projects*/ 
    add_filter( 'projects_post_type_singular_name', 'replace_project_with_new'); add_filter( 'projects_post_type_plural_name', 'replace_project_with_new'); function replace_project_with_new( $project ){ $replaced = str_ireplace('News', 'News', $project); return $replaced; } 
    
    function new_excerpt_more( $more ) {
    	return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">' . __('Read More', 'your-text-domain') . '</a>';
    }
    add_filter( 'excerpt_more', 'new_excerpt_more' );
    
    function child_et_pb_register_posttypes() { $labels = array( 'add_new' => __( 'Tourismus neu', 'Divi' ),
            'add_new_item'       => __( 'Neuen Tourismuseintrag erstellen', 'Divi' ),
            'all_items'          => __( 'Tourismus alle', 'Divi' ),
            'edit_item'          => __( 'Tourismuseintrag bearbeiten', 'Divi' ),
            'menu_name'          => __( 'Tourismus', 'Divi' ),
            'name'               => __( 'Tourismus', 'Divi' ),
            'new_item'           => __( 'Neuer Tourismuseintrag', 'Divi' ),
            'not_found'          => __( 'Nothing found', 'Divi' ),
            'not_found_in_trash' => __( 'Nothing found in Trash', 'Divi' ),
            'parent_item_colon'  => '',
            'search_items'       => __( 'Suche in Tourismus', 'Divi' ),
            'singular_name'      => __( 'Tourismus', 'Divi' ),
            'view_item'          => __( 'View Tourismusobjekt', 'Divi' ),
        );
     
        $args = array(
            'can_export'         => true,
            'capability_type'    => 'post',
            'has_archive'        => true,
            'hierarchical'       => false,
            'labels'             => $labels,
            'menu_icon'          => 'dashicons-admin-home',
            'menu_position'      => 5,
            'public'             => true,
            'publicly_queryable' => true,
            'query_var'          => true,
            'show_in_nav_menus'  => true,
            'show_ui'            => true,
            'rewrite'            => apply_filters( 'et_project_posttype_rewrite_args', array(
                'feeds'          => true,
                'slug'           => 'Tourismus',
                'with_front'     => false,
            )),
            'supports'           => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments', 'revisions', 'custom-fields' ),
        );
     
        register_post_type( 'project', apply_filters( 'et_project_posttype_args', $args ) );
     
        $labels = array(
            'name'              => _x( 'Categories', 'Tourismus category name', 'Divi' ),
            'singular_name'     => _x( 'Category', 'Tourismus category singular name', 'Divi' ),
            'search_items'      => __( 'Search Categories', 'Divi' ),
            'all_items'         => __( 'All Categories', 'Divi' ),
            'parent_item'       => __( 'Parent Category', 'Divi' ),
            'parent_item_colon' => __( 'Parent Category:', 'Divi' ),
            'edit_item'         => __( 'Edit Category', 'Divi' ),
            'update_item'       => __( 'Update Category', 'Divi' ),
            'add_new_item'      => __( 'Add New Category', 'Divi' ),
            'new_item_name'     => __( 'New Category Name', 'Divi' ),
            'menu_name'         => __( 'Categories', 'Divi' ),
        );
     
        register_taxonomy( 'project_category', array( 'project' ), array(
            'hierarchical'      => true,
            'labels'            => $labels,
            'show_ui'           => true,
            'show_admin_column' => true,
            'query_var'         => true,
        ) );
     
        $labels = array(
            'name'              => _x( 'Tags', 'Tourismus Tag name', 'Divi' ),
            'singular_name'     => _x( 'Tag', 'Tourismus tag singular name', 'Divi' ),
            'search_items'      => __( 'Search Tags', 'Divi' ),
            'all_items'         => __( 'All Tags', 'Divi' ),
            'parent_item'       => __( 'Parent Tag', 'Divi' ),
            'parent_item_colon' => __( 'Parent Tag:', 'Divi' ),
            'edit_item'         => __( 'Edit Tag', 'Divi' ),
            'update_item'       => __( 'Update Tag', 'Divi' ),
            'add_new_item'      => __( 'Add New Tag', 'Divi' ),
            'new_item_name'     => __( 'New Tag Name', 'Divi' ),
            'menu_name'         => __( 'Tags', 'Divi' ),
        );
     
        register_taxonomy( 'project_tag', array( 'project' ), array(
            'hierarchical'      => false,
            'labels'            => $labels,
            'show_ui'           => true,
            'show_admin_column' => true,
            'query_var'         => true,
        ) );
     
        $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 ) );
    }
     
    function remove_et_pb_actions() {
        remove_action( 'init', 'et_pb_register_posttypes', 15 );
    }
     
    add_action( 'init', 'remove_et_pb_actions');
    add_action( 'init', 'child_et_pb_register_posttypes', 20 );
    
    ?>

    Wie kann ich wieder den Zugang erhalten?

    Besten Dank!
    Claudia

Ansicht von 2 Antworten - 1 bis 2 (von insgesamt 2)
Ansicht von 2 Antworten - 1 bis 2 (von insgesamt 2)
  • Das Thema „Kein Zugriff auf Divi Bibliothek“ ist für neue Antworten geschlossen.