Home Forums Flowfolio WordPress Theme links in menu bar don't work

This topic contains 10 replies, has 2 voices, and was last updated by  Johnny 2 years, 7 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #3792

    SauSo
    Participant

    A link in my menu bar should function like this:

    about > LinkedIn

    but whenever I link somewhere outside my own site, I get an error message reading

    “Perhaps the network unstable, please click refresh page”

    ?

    #3794

    Johnny
    Participant

    hi, please try this:
    1. find the menu item id(using google chrome, right click mouse button, inspect element), assume it is ‘menu-item-1438’;
    2. add below script to footer.php before body tag:
    <script>jQuery("#menu-item-1438 a").click(function() { window.location.replace("http://some/where/you/want/go\"); return false;});</script>
    (when you copy the script, please remove the ‘\’ in the link)
    any problem, please let me known.
    Best

    #3795

    SauSo
    Participant

    That did work, thank you!

    #3796

    SauSo
    Participant

    The issue now is that I want to open these links in a new tab. That works fine like this:

    <script>jQuery(“#menu-item-321 a”).click(function() { window.open(“http://www.linkedin.com/in/saundrasorenson”); return false;});</script>

    The problem is, the original page doesn’t stay static. Instead, it just gives the error message “Perhaps the network unstable, please click refresh page”

    #3800

    Johnny
    Participant

    Hi, if don’t mind please paste your site url here, I will check it for you later,
    Thank you

    #3815

    SauSo
    Participant
    This reply has been marked as private.
    #3820

    Johnny
    Participant

    Hi, please try update the previous script to this:
    <script>jQuery("#menu-item-321 a").attr("act", "noajax");</script>
    Best

    #3826

    SauSo
    Participant
    This reply has been marked as private.
    #3827

    Johnny
    Participant

    HI, remove first line please, only keep second line.
    Thank you

    #3839

    SauSo
    Participant

    While that works, it doesn’t open the link in a new tab, which I would prefer. ?

    #3840

    Johnny
    Participant

    Hi, open in same window would be better.
    Thank you

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

You must be logged in to reply to this topic.