Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By TheGAME1264

Thread: "undefined" in menu bar

  1. #1
    Junior Member TimZ's Avatar
    Join Date
    Jun 2016
    Location
    Philadelphia, PA
    Posts
    2
    Member #
    54540

    "undefined" in menu bar

    Hi all, I'm pretty much a monkey with a machine gun when it comes to html, css, etc, so please be patient with me. I am using a template (arcana) downloaded from HTML5 UP. My web pages are published at IPL. The problem I am having is when the window is reduced to a certain size (or viewed on a hand-held device) the menu bar displays "undefined". Can anyone tell me what I need to do to resolve this? I've looked at other posts with the same problem, but haven't been able to figure out how to fix it. Thanks in advance for your help. Tim Z

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    You won't find any post that will tell you how to solve your problem because this problem is specific to you.

    The problem that you have is that your script that generates the mobile menu is looking for an element with the id "logo" (note the case: it's important!) and trying to find the HTML inside of it. Your logo element doesn't exist, so there's nothing to be retrieved; hence, the "undefined".

    Something like <div id="logo">Some text</div> would solve your problem. Or you may want to create a logo hyperlink and use the IPL logo image. You've got some options.

    By the way, has anyone ever told you guys that the lettering in the IPL logo is reminiscent of the font for the Toronto Blue Jays logo?
    TimZ likes this.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member TimZ's Avatar
    Join Date
    Jun 2016
    Location
    Philadelphia, PA
    Posts
    2
    Member #
    54540
    Quote Originally Posted by TheGAME1264 View Post
    You won't find any post that will tell you how to solve your problem because this problem is specific to you.

    The problem that you have is that your script that generates the mobile menu is looking for an element with the id "logo" (note the case: it's important!) and trying to find the HTML inside of it. Your logo element doesn't exist, so there's nothing to be retrieved; hence, the "undefined".

    Something like <div id="logo">Some text</div> would solve your problem. Or you may want to create a logo hyperlink and use the IPL logo image. You've got some options.

    By the way, has anyone ever told you guys that the lettering in the IPL logo is reminiscent of the font for the Toronto Blue Jays logo?
    Game . . . You are spot on! Thanks for your guidance! I removed the logo id line when I altered the template. Put it all back together and it works like a charm now. I didn't realize the Blue Jays had that font. It is Colonna MT, in case you're wondering. Thanks for the precise instructions and for such a quick response! -Tim Z

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    You're welcome!
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:41 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com