• Resolved Gysbertus11

    (@gysbertus11)


    Hi all, I am getting a fatal error: Class ‘TC_customize’ not found in /wp-content/themes/asoapbox-child/functions.php
    function remove_admin_bar_buttons() {
    global $current_user;
    get_currentuserinfo();
    if ( in_array( ‘administrator’, $current_user -> roles ) )
    return;
    remove_action ( ‘wp_before_admin_bar_render’, array( TC_customize::$instance , ‘tc_add_admin_bar_options_menu’ ));
    remove_action ( ‘wp_before_admin_bar_render’, array( TC_admin_init::$instance , ‘tc_add_help_button’ ));
    }

    Please help,

    Marius

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Gysbertus11

    (@gysbertus11)

    Problem solved
    TC=tc

    Thread Starter Gysbertus11

    (@gysbertus11)

    Problem not solved

    Which version of Czr are you using?

    Thread Starter Gysbertus11

    (@gysbertus11)

    Hi rdell, been reading your comments, great help.
    Version 3.1.24

    Is asoapbox-child linked to customizr in the style.css using:
    Template: customizr

    Might be worth updating to 3.2.1 to see if problem still persists.

    Thread Starter Gysbertus11

    (@gysbertus11)

    Hi rdell, style.css
    /*
    Theme Name: Asoapbox child
    Version: 1.0
    Description: A child theme of Customizr
    Template: customizr
    */

    @import url(“../customizr/style.css”);

    header.tc-header {
    /* Adjust the (red) background color */
    background-color: red;
    /* Adjust the border (top/bottom + left/right) style/color */
    border: 5px 5px solid red;
    /* Adjust the (red) top border style/color */
    border-top: 5px solid red;
    /* Adjust the (green) bottom border style/color */
    border-bottom: 5px solid red;
    /* Adjust the Image location ‘wp-content/uploads/NAMEOFFILE.png’ */
    background: url(/wp/wp-content/uploads/Header.png) repeat 0 0;
    }
    /*.navbar-inner {
    background: rgba(51, 153, 255, 0.9);
    }
    */

    I down loaded 3.2.1 do I just upload the file as if installing a new theme?

    Thanks

    Thread Starter Gysbertus11

    (@gysbertus11)

    Hi rdell, can this be a directory issue?
    I installed wordpress in /wp
    /wp/wp-content/asoapbox-child

    thanks

    Marius

    Because it’s not yet been released for automatic update, you have to replace the contents of wp-content/themes/customizr with the zip contents, being careful to completely replace the contents and not leaving any straggling files.

    Some hosts install to /wp so not a problem.

    And take out the @import from style.css as it’s done automatically by Czr.

    Thread Starter Gysbertus11

    (@gysbertus11)

    Hi rdell, the new 3.2.1 look stunning. Still the same issue, I must be doing something wrong. This is the code that a copied into the function.php of the child.

    add_action (‘init’ , ‘remove_admin_bar_buttons’);

    function remove_admin_bar_buttons() {
    global $current_user;
    get_currentuserinfo();
    if ( in_array( ‘administrator’, $current_user -> roles ) )
    return;
    remove_action ( ‘wp_before_admin_bar_render’, array( TC_customize::$instance , ‘tc_add_admin_bar_options_menu’ ));
    remove_action ( ‘wp_before_admin_bar_render’, array( TC_admin_init::$instance , ‘tc_add_help_button’ ));
    }

    thanks

    Marius

    Let’s do it with CSS.

    To remove help button:

    #wpadminbar #wp-admin-bar-tc-customizr-help {
    display: none;
    }

    Customizit button hasn’t been around for several versions?

    Thread Starter Gysbertus11

    (@gysbertus11)

    Morning rdell, thanks for the help.

    Much appreciated

    Best regards,

    Marius

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Removing the Help and Customiz’it admin bar buttons’ is closed to new replies.