• Resolved Alexandra

    (@alexandramerisoiu)


    Hi. For a few days the menu is hidden behind the wrapper, I think. And on mobile the menu is not visible, behind the wrapper again. Haven’t experienced this before so it’s better to who you than explain: http://urbanwomenfitness.com/

    You can see the drop down menu “Work With Me” is not visible. Also notice the scroll bar on the right hand side of the nav-bar, have no idea how that came about. On mobile the menu is hidden altogether, not just the drop down.

    I have searched for solutions and tried some, for example I experimented with the z-index but didn’t help.

    I have deactivated some of the plugins I used/updated in the past days. Please advise. Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • You’ve set up a style.css that has a mix of CSS and php. Extract:

    /*
    Theme Name: Customizr-child
    Version: 1.0
    Description: A child theme of Customizr
    Template: customizr
    */
    @import url("../customizr/style.css");
    
    add_filter('tc_global_layout', 'my_custom_layout' );
    
    function my_custom_layout( $layout ) {
        $my_layout_for_pages      = array(
            'r' => array ('content' => 'span8' , 'sidebar' => 'span4'),
            'l' => array ('content' => 'span8' , 'sidebar' => 'span4'),
            'b' => array ('content' => 'span4' , 'sidebar' => 'span4'),
            'f' => array ('content' => 'span12' , 'sidebar' => false),
        );
    
        $my_layout_for_categories      = array(
            'r' => array ('content' => 'span6' , 'sidebar' => 'span6'),
            'l' => array ('content' => 'span6' , 'sidebar' => 'span6'),
            'b' => array ('content' => 'span6' , 'sidebar' => 'span3'),
            'f' => array ('content' => 'span12' , 'sidebar' => false),
        );
    
        if ( is_category() ) {
            $my_layout = $my_layout_for_categories;
        } else if ( is_page() ) {
            $my_layout = $my_layout_for_pages;
        } else {
            return $layout;
        }
    
        //sets new values for content and sidebar (checks if there are new values to set first)
        foreach ($layout as $key => $value) {
            $layout[$key]['content']   = isset( $my_layout[$key]['content']) ? $my_layout[$key]['content'] : $layout_choices[$key]['content'];
            $layout[$key]['sidebar']   = isset( $my_layout[$key]['sidebar']) ? $my_layout[$key]['sidebar'] : $layout_choices[$key]['sidebar'];
        }
    
        return $layout;
    }
    
    /* SOCIAL MEDIA ICONS SETTINGS*/
    /* Change the color of all the Social Icons */
    .navbar-inner a.social-icon                 {color:#ca2341;}     /* Header */
    footer#footer .colophon  a.social-icon      {color:#ffffff;}     /* Footer */

    CSS needs to remain in style.css
    php needs to be removed from style.css and added to functions.php

    See here

    And remove the @import at start – not needed as Czr does that for you.

    Thread Starter Alexandra

    (@alexandramerisoiu)

    Thank you I took them out. Nothing changed. The social media icons settings have been there for months and didn’t cause anything. But I took them out, time to clean up the CSS. In fact I deleted everything from the CSS just to test and didn’t affect the menu.

    Anything else I should look at to figure out the menu problem?

    Thread Starter Alexandra

    (@alexandramerisoiu)

    I have just deactivated each plugin, one at a time, and still nothing.

    a) Still has php in it:
    remove_action( 'contango_footer', 'contango_footer_init' );

    b) This is the cause:

    /*MAKE IMAGE FIT IN ITS PLACE*/
    .clearfix {
      overflow: auto;
    }

    Thread Starter Alexandra

    (@alexandramerisoiu)

    Hi. Solved. It actually worked a couple days after I made the changes but it worked. Thanks for your guidance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Menu under wrapper?’ is closed to new replies.