Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter galebnas1

    (@galebnas1)

    Thanks,
    I fixed it by changing line 367 in “class-novo-map-admin.php” to :
    $screens = array( 'post', 'page', 'portfolio' );
    and adding the following code after line 69 in “admin-helpers.php”

        elseif ( isset( $post['post_type'] ) && 'portfolio' == $post['post_type'] ) {
            if ( ! current_user_can( 'edit_post', $post['ID'] ) ) {
                _e('<div class="notice notice-error is-dismissible"><p>User not allowed to edit this post.</p></div>');
                return false;
            }
            else {
                return true;
            }
        }
    Forum: Reviews
    In reply to: [Preloader] Great Plugin
    Thread Starter galebnas1

    (@galebnas1)

    I fixed it with this code
    instead of using is_home() I used is_page(‘Home’)
    PS. My home page is called ‘Home’

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