Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • in reply to: main menu items can't be clicked on safari #37508
     claremcsharry
    Participant

    Hi there,
    Have you tried it by logging in using the clareweb login?
    I am using a pc – laptop. My version of safari is: 5.1.7
    There is definitely a problem for me and one of the users that was testing it.
    What are you using(laptop, pc, mac) to view the problem? What version of Safari are you using?
    I didn’t change any settings after I installed Safari. Did you?
    Please see my attached images – image 1 and image 2
    On image1 I can see a number of options when my cursor hovers on the menu option – members.
    If I try to click on OCS rules, which is one of the dropdown options, I can’t – I get image2.

    Regards,
    Clare.

    Attachments:
    You must be logged in to view attached files.
    in reply to: main menu items can't be clicked on safari #36881
     claremcsharry
    Participant

    Hi there,
    I was wondering if you got my private message?
    Have you any news?

    Regards,
    Clare.

    in reply to: main menu items can't be clicked on safari #36794
     claremcsharry
    Participant
    This reply has been set as private.
    in reply to: main menu items can't be clicked on safari #36716
     claremcsharry
    Participant
    This reply has been set as private.
     claremcsharry
    Participant

    Cool – will do!

     claremcsharry
    Participant

    Hi there,
    Thanks again for your suggestions.
    I had a copy of the website that I created using Duplicator. I have been using that version to try out various plug-ins.
    I just copied the code into it and the login and logout all works!

    It’s weird. I think the fact that I spelled the top menu wrong (spelled it top-menu instead of Top_menu) must have messed things up. Even though I corrected it, it didn’t seem to “see” it.
    Could it have been sitting in some cache memory?
    Copying the correct code into the other version of the site works anyway.

    Thanks so much for all your help. Only for you said the code worked I wouldn’t have kept at it. It’s so more satisfying sorting it out by changing some code than installing yet another plug-in.
    Regards,
    Clare.

     claremcsharry
    Participant

    I did indeed have the top menu spelled wrong. I changed it to Top_menu but no luck, it still won’t work.
    I am running WordPress on my local machine – could this make a difference?
    To login I am using a shortcode from a plug-in called UPme profiles – could this mess things up?
    How are you logging in?

     claremcsharry
    Participant

    Hi there,
    I copied that code – kleo/page-parts/general-header-section.php. into the child theme – kleo-child/page-parts/general-header-section.php:
    I changed the following code:
    $top_menu = wp_nav_menu( array(
    ‘theme_location’ => ‘top’,
    ‘depth’ => 2,
    ‘container’ => ‘div’,
    ‘container_class’ => ‘top-menu col-sm-12 col-md-7 no-padd’,
    ‘menu_class’ => ”,
    ‘fallback_cb’ => ”,
    ‘walker’ => new kleo_walker_nav_menu(),
    ‘echo’ => false
    )
    );

    $primary_menu = wp_nav_menu( array(
    ‘theme_location’ => ‘primary’,
    ‘depth’ => 3,
    ‘container’ => ‘div’,
    ‘container_class’ => ‘collapse navbar-collapse nav-collapse pull-right’,
    ‘menu_class’ => ‘nav navbar-nav’,
    ‘fallback_cb’ => ‘kleo_walker_nav_menu::fallback’,
    ‘walker’ => new kleo_walker_nav_menu(),
    ‘echo’ => false
    )
    );

    To

    if ( is_user_logged_in() ) {
    $top_menu = wp_nav_menu( array(
    ‘theme_location’ => ‘top’,
    ‘depth’ => 2,
    ‘container’ => ‘div’,
    ‘container_class’ => ‘top-menu col-sm-12 col-md-7 no-padd’,
    ‘menu_class’ => ”,
    ‘fallback_cb’ => ”,
    ‘walker’ => new kleo_walker_nav_menu(),
    ‘echo’ => false,
    ‘menu’ => ‘Top-menu’
    )
    );

    $primary_menu = wp_nav_menu( array(
    ‘theme_location’ => ‘primary’,
    ‘depth’ => 3,
    ‘container’ => ‘div’,
    ‘container_class’ => ‘collapse navbar-collapse nav-collapse pull-right’,
    ‘menu_class’ => ‘nav navbar-nav’,
    ‘fallback_cb’ => ‘kleo_walker_nav_menu::fallback’,
    ‘walker’ => new kleo_walker_nav_menu(),
    ‘echo’ => false,
    ‘menu’ => ‘menu_main’
    )
    );
    }
    else {
    $primary_menu = wp_nav_menu( array(
    ‘theme_location’ => ‘primary’,
    ‘depth’ => 3,
    ‘container’ => ‘div’,
    ‘container_class’ => ‘collapse navbar-collapse nav-collapse pull-right’,
    ‘menu_class’ => ‘nav navbar-nav’,
    ‘fallback_cb’ => ‘kleo_walker_nav_menu::fallback’,
    ‘walker’ => new kleo_walker_nav_menu(),
    ‘echo’ => false,
    ‘menu’ => ‘logged_out’
    )
    );
    }

    Now the menu logged_out is displayed as the main menu and there is no top menu when the user is logged out. This is perfect.
    However when the user logs in, the menu main_menu is displayed on the top menu and main menu. There is no sign of the top-menu I created.

    On my settings on the backend, I have set main menu to logged_out and top menu to blank.

    Can anyone help – should I be using a referencing a different value than menu in the code?

     claremcsharry
    Participant

    Thank you – that looks like the appropriate program.I will try changing it.

Viewing 9 posts - 1 through 9 (of 9 total)

Log in with your credentials

Forgot your details?