• I am a developer helping a client reskin a new theme on their site. The new theme is Spacious, from themegrill.com.

    Please see the site at dev3.steadystate.org, where the homepage displays the problem I am having.

    Note the menu bar above the slider, which is plain text, aligned right; it should be aligned left and formatted at buttons, because I put in the following CSS in the ‘Additional CSS’ in the Spacious theme setting:

    // to style as buttons
    .main-navigation .menu > li:last-child > a {
    background: #ccc;
    border-radius: 8px;
    display: block;
    padding : 16px 15px 0;
    color: #fff;
    }
    
    // to align left
    #header-right-section {
    float: left;
    }
    #header-left-section {
    float: right;
    }
    
    // to resize letters
    .main-navigation ul li a {
    font-size: 18px
    }
    

    I know this works, because this used to format the menu correctly, but I had to rebuild this site yesterday, and was forced to start with a customized theme built by the previous developer…..and this is what I need help with: somehow this custom theme is interfering with the Spacious theme from ThemeGrill that I installed and activated.

    After the rebuild, I also see these puzzling error messages in the customize theme setting screen:

    Warning: array_values() expects parameter 1 to be array, null given in /home/steadys0/dev3/wp-includes/script-loader.php on line 977
    
    Warning: array_values() expects parameter 1 to be array, null given in /home/steadys0/dev3/wp-includes/script-loader.php on line 978
    
    Warning: array_values() expects parameter 1 to be array, null given in /home/steadys0/dev3/wp-includes/script-loader.php on line 981
    
    Warning: array_values() expects parameter 1 to be array, null given in /home/steadys0/dev3/wp-includes/script-loader.php on line 982
    
    Warning: array_values() expects parameter 1 to be array, null given in /home/steadys0/dev3/wp-includes/script-loader.php on line 983
    
    Fatal error: Call to a member function is_rtl() on null in /home/steadys0/dev3/wp-includes/script-loader.php on line 986

    These error messages only appeared after this last rebuild.

    Any ideas how I might correct these problems? I am inexperienced with how WordPress loads themes, but it would appear the previous theme is interfering with the normal process.

    Thanks for the help,
    Rick

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there @rcx

    Let me see if I can follow along, if not please do correct me. First, you are wanting the menu to be located on the left side and not on the right, correct? If that is the case from what I can tell there are two things that are sort of forcing that to float to the right. The first one I noticed was:

    
    #header-right-section {
      float: right; 
    }
    

    The second one was:

    
    .main-navigation {
      float: right;
      padding-top: 5px;
    }
    

    Now, for the warning. Does it happen if you deactivate all plugins?

    Thread Starter rcx

    (@rcx)

    Jose,

    I appreciate the comment but I know that deactivating all plugins is not a productive direction, because this CSS used to work before I was forced to clone the original site with its customized theme.

    I need to learn more how WP loads itself, and how this customized form could be interfering with it; this is strongly suggested by the error messages I mentioned.

    –Rick

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    What is really strange is that the warnings and the fatal are being caused in the translation/locale area. So something is causing that to not work right. If deactivating all plugins resolves the issue, then it means a plugins is causing this. If not, then re-installing core would be the next step.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Old custom theme interferes with new theme…somehow’ is closed to new replies.