[Resolved] mobile menu display bottom with larger nav size

Home Forums Support [Resolved] mobile menu display bottom with larger nav size

Home Forums Support mobile menu display bottom with larger nav size

Viewing 15 posts - 31 through 45 (of 49 total)
  • Author
    Posts
  • #653637
    Leo
    Staff
    Customer Support

    Are you seeing the same thing as my screenshots above?

    I’m trying to figure out why the two pages are different. The contact page has no header and the secondary navigation is working which is the end result we are trying to achieve right?

    #653641
    Howard

    Yes I deactivated contact page form but both desktop and mobile have primary nav home and contact there .
    Secondary has mobile and desktop nav with one you tube icon from snippets activated for font awesome 5
    Also
    Simple css activated with
    .site-header {
    display: none;
    }

    .inside-footer-widgets { text-align: center;.
    Don not display site header code
    .site-header {
    display: none;
    }

    #653646
    Leo
    Staff
    Customer Support

    What do you mean by “I deactivated contact page form”?

    So let’s take it another way, what’s not working correctly on the Contact page?

    Also why is the home page showing nothing fount? Since it’s assigned to be the blog page, can you add a test post to make sure everything is working correctly?

    #653656
    Howard

    Test Post there
    Deactivated contact form

    https://www.thesoundadvocate.com

    #653660
    Leo
    Staff
    Customer Support

    Ok so this is what I see on the Home page now:
    https://www.screencast.com/t/N31y8Qb9

    Looks like everything is working?

    #653671
    Howard

    Well we still have the mobile problem:
    I am going to make this a bit easier for us
    What needs to be done on mobile:
    https://www.rawassertions.com
    Also
    Can I use footer old fontawsome and header new fontawsome together or should I make them the newer one I put in secondary menu snippets?

    #653675
    Howard

    Does this have anything to do with it as its saved on my other site??

    https://docs.generatepress.com/article/disable-secondary-navigation-mobile-menu/

    #653765
    Leo
    Staff
    Customer Support

    Yes the rawassertion site is using this method here:
    https://docs.generatepress.com/article/disable-secondary-navigation-mobile-menu/

    #653770
    Howard

    I just installed those codes… mobile secondary menu still stays below after hitting primary; take a look now!
    Howard
    https://www.thesoundadvocate.com

    Maybe something with fontawsome 5??

    #653787
    Howard

    Checking my simple CSS —- is this correct?

    .site-header {
    display: none;
    }

    .inside-footer-widgets { text-align: center;.
    Don not display site header code
    .site-header {
    display: none;
    }

    .secondary-navigation .menu-toggle {
    display: none;
    }


    @media
    (max-width: 768px) {
    .secondary-navigation {
    text-align: center !important;
    }
    .secondary-navigation ul {
    display: block;
    }
    .secondary-navigation .sf-menu>li {
    float: none;
    display: inline-block !important;
    }

    #653853
    Leo
    Staff
    Customer Support

    Looks like this block has some problems:

    .inside-footer-widgets { text-align: center;.
    Don not display site header code
    .site-header {
    display: none;
    }

    – It’s missing a closing bracket and an extra . after text-align: center;.

    – Then some texts that aren’t CSS

    – Then a duplicated code that’s the same as the first block of code.

    You can always run it through this site as well to check any syntax errors:
    https://jigsaw.w3.org/css-validator/

    #653865
    Howard

    Will check… which text arnt CSS?
    Which is the duplicated code?
    This will make it much easier for me
    Thanks

    #653873
    Leo
    Staff
    Customer Support

    “Don not display site header code” isn’t CSS.

    And this is the same as the first block of code:

    .site-header {
    display: none;
    }
    #654597
    Leo
    Staff
    Customer Support

    Try this as your final CSS:

    .site-header {
        display: none;
    }
    
    .inside-footer-widgets { 
        text-align: center;
    }
    .secondary-navigation .menu-toggle {
        display: none;
    }
    @media(max-width: 768px) {
        .secondary-navigation {
            text-align: center !important;
        }
        .secondary-navigation ul {
            display: block;
        }
        .secondary-navigation .sf-menu>li {
            float: none;
            display: inline-block !important;
        }
    }

    You can compare the two to see where the differences are.

    #654730
    Howard

    Hi Leo
    Inserted “exact” codes as above,,,,then deactivated — and reactivated SNIPPET BELOW: (fontawsome 5 also in 2nd snippets with CDN code from GP documentation)

    add_action( ‘wp_enqueue_scripts’, ‘generate_dequeue_secondary_nav_mobile’, 999 );
    function generate_dequeue_secondary_nav_mobile() {
    wp_dequeue_style( ‘generate-secondary-nav-mobile’ );
    }
    Still the same??????
    Howard

    ps fontawsome snippet

    add_action( ‘wp_enqueue_scripts’, ‘tu_load_font_awesome’ );
    /**
    * Enqueue Font Awesome.
    */
    function tu_load_font_awesome() {
    wp_enqueue_style( ‘font-awesome’, ‘//use.fontawesome.com/releases/v5.1.0/css/all.css’, array(), ‘5.1.0’ );
    }
    only plugins activated currently are: GP premium,,code snippets, simple css and wp contact lite
    Is the fontawsome code correct? I use the old fontawsome for the widget on bottom footer 4.7

Viewing 15 posts - 31 through 45 (of 49 total)
  • The topic ‘mobile menu display bottom with larger nav size’ is closed to new replies.