Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Missing Plugin Tab

Discussion in 'Misc WordPress Requests' started by burg1947, Nov 27, 2017.

  1. burg1947

    Guest

    Reply To: Missing Plugin Tab, by burg1947

    You asked me a couple of weeks ago for this. I have no plugin tab on the left side. I cannot download Yoast premier because of this. I also don’t have a theme tab under appearance. I have tried this.
    wp-admin/options-general.php?page=menu_editor, I get this response: Sorry, you are not allowed to access this page.
    Below is what I received from our IT guy’s, they said they couldn’t get the plugin tab back on for me. Is this true? I don’t know what to due.
    I appreciate your help.

    <?php
    /**
    * kdw-framework4 functions and definitions
    *
    * @package kdw-framework4
    */

    if ( ! function_exists( 'kdw_framework4_setup' ) ) :
    /**
    * Sets up theme defaults and registers support for various WordPress features.
    *
    * Note that this function is hooked into the after_setup_theme hook, which
    * runs before the init hook. The init hook is too late for some features, such
    * as indicating support for post thumbnails.
    */
    function kdw_framework4_setup() {

    /*
    * Make theme available for translation.
    * Translations can be filed in the /languages/ directory.
    * If you're building a theme based on kdw-framework4, use a find and replace
    * to change 'kdw-framework4' to the name of your theme in all the template files
    */
    load_theme_textdomain( 'kdw-framework4', get_template_directory() . '/languages' );

    // Add default posts and comments RSS feed links to head.
    add_theme_support( 'automatic-feed-links' );

    /*
    * Let WordPress manage the document title.
    * By adding theme support, we declare that this theme does not use a
    * hard-coded <title> tag in the document head, and expect WordPress to
    * provide it for us.
    */
    //Turn off support our theme uses ACF to propagate this value.
    //add_theme_support( 'title-tag' );

    /*
    * Enable support for Post Thumbnails on posts and pages.
    *
    * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
    */
    //add_theme_support( 'post-thumbnails' );

    // This theme uses wp_nav_menu() in one location.
    //register_nav_menus( array('primary' => esc_html__( 'Primary Menu', 'kdw-framework4' ),) );

    function register_my_menus() {
    register_nav_menus(
    array( 'header-menu' => __( 'Header Menu' ), 'legal-menu' => __( 'Legal Menu' ) )
    );}
    add_action( 'init', 'register_my_menus' );

    /*
    * Switch default core markup for search form, comment form, and comments
    * to output valid HTML5.
    */
    add_theme_support( 'html5', array(
    'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',
    ) );

    /*
    * Enable support for Post Formats.
    * See http://codex.wordpress.org/Post_Formats
    */
    add_theme_support( 'post-formats', array(
    'aside', 'image', 'video', 'quote', 'link',
    ) );

    // Set up the WordPress core custom background feature.
    //add_theme_support( 'custom-background', apply_filters( 'kdw_framework4_custom_background_args', array(
    // 'default-color' => 'ffffff',
    // 'default-image' => '',
    //) ) );
    }
    endif; // kdw_framework4_setup
    add_action( 'after_setup_theme', 'kdw_framework4_setup' );

    /**
    * Set the content width in pixels, based on the theme's design and stylesheet.
    *
    * Priority 0 to make it available to lower priority callbacks.
    *
    * @global int $content_width
    */
    function kdw_framework4_content_width() {
    $GLOBALS['content_width'] = apply_filters( 'kdw_framework4_content_width', 640 );
    }
    add_action( 'after_setup_theme', 'kdw_framework4_content_width', 0 );

    /**
    * Register widget area.
    *
    * @link http://codex.wordpress.org/Function_Reference/register_sidebar
    */
    function kdw_framework4_widgets_init() {
    register_sidebar( array(
    'name' => esc_html__( 'Sidebar', 'kdw-framework4' ),
    'id' => 'sidebar-1',
    'description' => '',
    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    'after_widget' => '</aside>',
    'before_title' => '<h1 class="widget-title">',
    'after_title' => '</h1>',
    ) );
    }
    add_action( 'widgets_init', 'kdw_framework4_widgets_init' );

    remove_action('wp_head', 'wp_generator');

    function f4theme_setup()
    {
    // Here we load from our includes directory
    // This considers parent and child themes as well
    locate_template( array( 'inc/framework4.php' ), true, true );
    locate_template( array( 'inc/f4xmenus.php' ), true, true );
    locate_template( array( 'inc/sc.php' ), true, true );
    }
    add_action( 'after_setup_theme', 'f4theme_setup' );

    /**
    * Custom template tags for this theme.
    */
    require get_template_directory() . '/inc/template-tags.php';

    /**
    * Custom functions that act independently of the theme templates.
    */
    require get_template_directory() . '/inc/extras.php';

    /**
    * Customizer additions.
    */
    require get_template_directory() . '/inc/customizer.php';

    /**
    * Load Jetpack compatibility file.
    */
    require get_template_directory() . '/inc/jetpack.php';

    // ****************************************************************************************************************************************
    //** FONTS
    // ****************************************************************************************************************************************
    /* Load Google fonts */
    function lets_load_google_fonts() {
    wp_register_style('googleFontsRoboto','http://fonts.googleapis.com/css?family=Roboto');
    wp_enqueue_style( 'googleFontsRoboto');

    //wp_register_style('googleFontsOswald','http://fonts.googleapis.com/css?family=Oswald:400,700');
    //wp_enqueue_style( 'googleFontsOswald');

    wp_register_style('googleFontsOpensans','http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700');
    wp_enqueue_style( 'googleFontsOpensans');

    }
    add_action('wp_print_styles', 'lets_load_google_fonts');

    // ****************************************************************************************************************************************

    // ** ADD CUSTOM FUNCTIONS HERE ******
    add_action( 'init', 'register_cpt_line_card' );

    function register_cpt_line_card() {

    $labels = array(
    'name' => _x( 'Line Cards', 'line_card' ),
    'singular_name' => _x( 'Line Card', 'line_card' ),
    'add_new' => _x( 'Add New', 'line_card' ),
    'all_items' => _x( 'Line Cards', 'line_card' ),
    'add_new_item' => _x( 'Add New Line Card', 'line_card' ),
    'edit_item' => _x( 'Edit Line Card', 'line_card' ),
    'new_item' => _x( 'New Line Card', 'line_card' ),
    'view_item' => _x( 'View Line Card', 'line_card' ),
    'search_items' => _x( 'Search Line Cards', 'line_card' ),
    'not_found' => _x( 'No line cards found', 'line_card' ),
    'not_found_in_trash' => _x( 'No line cards found in Trash', 'line_card' ),
    'parent_item_colon' => _x( 'Parent Line Card:', 'line_card' ),
    'menu_name' => _x( 'Line Cards', 'line_card' ),
    );

    $args = array(
    'labels' => $labels,
    'hierarchical' => false,
    'public' => true,
    'show_ui' => true,
    'show_in_menu' => true
    );

    register_post_type( 'line_card', $args );
    }

    // ** STOP CUSTOM FUNCTIONS HERE ******

    Reply To: Missing Plugin Tab
     
    #1

Share This Page

Web Hosting