Home Events! Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
November 23, 2024 - @719.29 (what is this?)
Forum activity rating: Three Stars Posts: 32/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts    Start New Topic
News: :ha: :pc: Hello Melonland! :pc: :happy:

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Sidebar Load on Every Page?


« previous next »
Pages: [1] Print
Author Topic: Sidebar Load on Every Page?  (Read 671 times)
DoctorDizzy
Casual Poster ⚓︎
*


I will become the god of this new world!

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: doctordizzy
iMood: DoctorDizzyspin

View Profile WWW

First 1000 Members!Joined 2022!
« on: April 05, 2023 @960.76 »

Hi! :smile: I'm wondering if I can load the sidebar on my website on every page? The same goes for the footer. :omg:

I do kiiiiinda want to do this without JavaScript, but no worries if that's impossible! ^^;
I just want this to look the same as it does now, but... Loading on every page.
Logged

I am lightning... The rain transformed!
doubleincision
Full Member
***


⛺︎ My Room
iMood: doubleincision

View Profile WWW

First 1000 Members!Joined 2023!
« Reply #1 on: April 05, 2023 @964.92 »

easiest way to do this (imo) is by using iframes! you can stick an iframe in the main container for your site content, and have your sidebar links simply change which page is displayed in the iframe. that's how my site layout works, if you wanna see a working example.

this page explains a lot more about how iframes work.
Logged



DoctorDizzy
Casual Poster ⚓︎
*


I will become the god of this new world!

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: doctordizzy
iMood: DoctorDizzyspin

View Profile WWW

First 1000 Members!Joined 2022!
« Reply #2 on: April 05, 2023 @967.49 »

Thank you so much for your response! ^_^
That said, I don't think that I want to do this method of using iframes? Mostly because I like being able to link to specific pages, I guess. Honestly, if I'm going to use iframes, I'd rather have the navbar and footer be the frames, but I don't know how to do that to where it's not noticeable,,

I'll definitely look at the guide, though -- Maybe that'll help? ^^;
Logged

I am lightning... The rain transformed!
Melooon
Hero Member ⚓︎
*****


So many stars!

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games

View Profile WWW

Thanks for being rad!a puppy for your travelsAlways My PalFirst 1000 Members!spring 2023!Squirtle!!!!MIDI WarriorMIDI Warrior1234 Posts!OzspeckCool Dude AwardRising Star of the Web AwardMessage BuddyPocket Icelogist!OG! Joined 2021!...
« Reply #3 on: April 05, 2023 @973.08 »

Mostly because I like being able to link to specific pages
This is the fix for linking in iframes: https://forum.melonland.net/index.php?topic=115.0

You can do this with a Javascript too, but then your site is unusable for anyone who has JS turned off (also its a lot more techy to setup) :ohdear:

I think iFrames or Frameset are the best way to do this on a typical site!

If you are using a static site generator like Eleventy, then you can do this too (you can make it include a standard nav on every page it generates), but that's super techy; however, it would work for your site since you're using a standard layout! (As opposed to a different design for every page, Eleventy can't really do that)
Logged


everything lost will be recovered, when you drift into the arms of the undiscovered
DoctorDizzy
Casual Poster ⚓︎
*


I will become the god of this new world!

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: doctordizzy
iMood: DoctorDizzyspin

View Profile WWW

First 1000 Members!Joined 2022!
« Reply #4 on: April 05, 2023 @71.54 »

Thank you! I'll give this a shot!
Logged

I am lightning... The rain transformed!
Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

Website example page

Started by Icey!Board ☆ ∙ Showcase & Links

Replies: 3
Views: 2347
Last post December 16, 2021 @285.10
by cinni
Making a landing page?

Started by DoctorDizzyBoard ☔︎ ∙ I need Help!

Replies: 2
Views: 982
Last post November 03, 2022 @13.65
by DoctorDizzy
HELP: Trying to create a sidebar in HTML

Started by wrinkledlionBoard ☔︎ ∙ I need Help!

Replies: 3
Views: 1537
Last post June 29, 2022 @80.53
by Memory

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi