• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to add another page link to my nav bar

Explorer ,
Mar 06, 2019 Mar 06, 2019

Copy link to clipboard

Copied

Hi All, I recently built a nav bar in Javascript for a website but I have forgotten how to add an extra page somehow xD I'm just learning to code right now so am very inexperienced. I'd love if anyone could help and lend me a hand with bug fixing and the like too here is my code.

The code for the other pages can be found here too if needed.

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 06, 2019 Mar 06, 2019

I'm afraid your use of JavaScript for something so basic as navigation has me baffled.  A few lines of HTML code are all that's necessary.   Use CSS rules to change the appearance.

CSS Styling Links

<nav>

<ul>

<li><a href="index.html">Home</a></li>

<li><a href="voucher.pdf">Voucher</a></li>

<li><a href="contact.html">Contact</a></li>

<li><a href="https://example.com">Example</a></li>

<li>

</ul>

</nav>

Votes

Translate

Translate
LEGEND ,
Mar 26, 2019 Mar 26, 2019

Copy link to clipboard

Copied

BenPleysier  wrote

In File Manager, check the box to get the file extensions

Thanks Ben,

I'm assuming then that if youre trying to call a file WITH the extension - <script src="about.js"></script> that if it hasn't got one in the folder 'about' that its going to fail?

Or does this PC workflow somehow know and adds the .js bit?

Only ever having used a PC half-a-dozen times in my lifetime I cant recall a thing about it. I don't seem to remember any tutorials which I have watched, where the developer uses a PC, that their files lack an extension but then again its not upper most in my mind to observer that part.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2019 Mar 26, 2019

Copy link to clipboard

Copied

about.js is not on the local disk.

That tells me the files are not  stored locally.  If not stored locally, then where are they?

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 26, 2019 Mar 26, 2019

Copy link to clipboard

Copied

https://forums.adobe.com/people/Nancy+OShea  wrote

about.js is not on the local disk.

That tells me the files are not  stored locally.  If not stored locally, then where are they?

Don't know. I'm baffled just how difficult some can make it. I guess without the knowledge or experience anything can and does happen.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 27, 2019 Mar 27, 2019

Copy link to clipboard

Copied

Yeah, Idk what i've done tbh.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 27, 2019 Mar 27, 2019

Copy link to clipboard

Copied

LATEST

Can you show us a screenshot of your DW Site definition?  Go to Site > Manage Sites > Select your site name from the list and click the Pencil Icon.

Site panel.   In my example, my site folder is on my C drive .

CC-localsite.jpg

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 27, 2019 Mar 27, 2019

Copy link to clipboard

Copied

These files are stored locally, thats what is confusing me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines