This zone is sleeping right now! ZzzZZzzz

Better not disturb it! ~You go to the petrol station and buy a slushy instead, everything is cool!~

This area will open again in 000.beats!

(Learn about Swatch Time)

Some other zones are awake :^]


Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn in Year 5 - @964.21
Two Stars Random | Recent Posts | Guild Recents
News: :sleep: These are fast times on the World Wide Web~ Guild Events: Prepare for Halloween Reminder!

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


« previous next »
Pages: [1] Print Embed
Author Topic: Sidebar Load on Every Page?  (Read 1500 times)
DoctorDizzy
Jr. Member ⚓︎
**
View Profile WWW


I will become the god of this new world!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: doctordizzy
iMood: DoctorDizzyspin

Artifacts:
First 1000 Members!Joined 2022!
« on: Spring in Year 2 @961 » Embed

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
Sr. Member
****
View Profile WWW


⛺︎ My Room
iMood: doubleincision

Artifacts:
Great Posts PacmanFirst 1000 Members!Joined 2023!
« Reply #1 on: Spring in Year 2 @965 » Embed

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

https://i.imgur.com/VboGEkt.gif

DoctorDizzy
Jr. Member ⚓︎
**
View Profile WWW


I will become the god of this new world!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: doctordizzy
iMood: DoctorDizzyspin

Artifacts:
First 1000 Members!Joined 2022!
« Reply #2 on: Spring in Year 2 @967 » Embed

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 ⚓︎
*****
View Profile WWWArt


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

Guild Memberships:
Artifacts:
Wavy Shoulder-Length Hair with BangsTop HatBug!You're a Star!Flinstone VitaminI got robbed by Dan Q on Melonland!
« Reply #3 on: Spring in Year 2 @973 » Embed

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

Artifact Swap: alien yappin kittayHave a chillpillMove it, football head!black n orange yappin kittayRed Tulip100 coinsLurby<3eyntivemds pet fishGreen partyhatPlankMaya's Magatama
DoctorDizzy
Jr. Member ⚓︎
**
View Profile WWW


I will become the god of this new world!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: doctordizzy
iMood: DoctorDizzyspin

Artifacts:
First 1000 Members!Joined 2022!
« Reply #4 on: Spring in Year 2 @072 » Embed

Thank you! I'll give this a shot!

Logged

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

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ 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
@000 Melon
Land
Editor Recent Edits Tenement Arcade Random Link Land → Forum Art Hub Chat Webring Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Newsletters Image Stream
Passport Sites Asatte Add your site?
Zap!
Minecraft: Online
Join: craft.melonking.net