Page 1 of 1

Using Layout Grids as Bookmarks

Posted: Sun Mar 29, 2026 6:54 am
by AliGW
Following on from yesterday, I am finding bookmarks really frustrating to work with.

I found this thread: viewtopic.php?t=90263

In the last post, Pablo mentioned using smooth scroll and offsets, so I decided to investigate. So far, only one combination of settings had any effect: most settings I tried just didn't do anything. The offset seems to make no difference whatsoever, nor does the speed setting. I just don't know what I am doing wrong. I am sure it must be me ...

Has anyone else had any luck with this? I can provide a demo file later, if necessary.

I am finding it frustrating that I can't add an anchor point to any object and not just layout grids. Adding bookmarks to the page does not work well - it's very hit and miss.

What I just don't understand is where the objects end up on the page: nothing ends up at the top of the viewport, even though there's a lot of page below it.

I assumed that setting a layout grid as a bookmark would always leave me with the top of the layout grid at the top of the page, but it just doesn't work that way, and the results are so inconsistent that I am not sure that I can work with it. I know that Pablo's demo pages work as expected.

I'll sort out that demo file soon. I need a fresh pair of eyes to see what I am missing here.

Re: Using Layout Grids as Bookmarks

Posted: Sun Mar 29, 2026 7:24 am
by AliGW
I have created a test file and got it working up to a point. The image needed for the master page is in the folder inside the ZIP.

https://we.tl/t-MvSGx4xDhdYYpoB2

So, all menu items are linked to their respective layout grids. Each layout grid has the bookmark settings as follows:

Smooth Scroll: on
Speed: 600
Type: linear
Offset: -135

If I test menu items in turn and return to Home after each, they do what I am expecting. However, if I go to Ethos and then back to Gallery, Gallery is no longer at the top. Similarly, if I go to About and then back to either Ethos or Gallery, they are out. Likewise if I go from Gallery to Ethos. Why are they not being returned to the correct place relative to the top of the viewport? What am I doing wrong here or not understanding?

Thank you!

Re: Using Layout Grids as Bookmarks

Posted: Sun Mar 29, 2026 7:30 am
by Pablo
First you will have to understand that bookmarks are standard HTML functionality, it not something that I have invented.
The functionality is implement in the browser, not in WWB.
Basically, a bookmark is just an anchor tag with a name. it's the most basic HTML element of a page, without any special functionality or styling attached.
So, if it does not work then something may be wrong with the logic of how it is used.

Also, any object can be used as anchor, not just layout grids. Tools -> Options -> User Interface -> Display all objects in Bookmarks dropdown list
But in my opinion it is more logical to use entire section as anchor instead individual objects.

I have created many templates that use bookmarks. There are only a few that do not use them.

Re: Using Layout Grids as Bookmarks

Posted: Sun Mar 29, 2026 7:38 am
by AliGW
First you will have to understand that bookmarks are standard HTML functionality, it not something that I have invented.
The functionality is implement in the browser, not in WWB.
I did not say that you had invented anything. I am not pointing the finger at anyone but myself. You don't need to be defensive - you are not being criticised here. I know it must be me, but I just can't work it out.
So, if it does not work then something may be wrong with the logic of how it is used.
Most probably, but what? I have attached a demo file.
Also, any object can be used as anchor, not just layout grids. Tools -> Options -> User Interface -> Display all objects in Bookmarks dropdown list
But in my opinion it is more logical to use entire section as anchor instead individual objects.
I had not realised that setting was there - thanks for that. I, too, would prefer to use layout grids as anchors, but they aren't quite doing what I expect them to do based on my own logic, which is most probably at fault.
I have created many templates that use bookmarks. There are only a few that do not use them.
I know - I also made it very clear that it must be me who is making an error. Again, you don't need to defend yourself. It's not going to be you: it's going to be me, but I can't work it out without asking.

Re: Using Layout Grids as Bookmarks

Posted: Sun Mar 29, 2026 7:40 am
by Pablo
Thanks for posting the demo.

The bookmark in your project works, the confusing part is probably caused by the fixed header. The anchor starts at the top of the page so you will need to take into account that the menu overlaps part of section.
You will need to add the height of menu as offset (90px)
When I change all offsets in your projetc to 90 (instead of 135) then it seems to work

Note that offsets only work when smooth scrolling is enabled.

Re: Using Layout Grids as Bookmarks

Posted: Sun Mar 29, 2026 7:51 am
by AliGW
That's great! It certainly seems to work when going backwards, but if I go from Home to Gallery, the top of the layout grid is cut off- any idea why this might be?

Also, is it possible to get the smooth scrolling effect with the Home anchor point - where would I be able to set that, if at all?

I really do appreciate your help.

EDIT: Found smooth scrolling for the Home anchor!

Re: Using Layout Grids as Bookmarks

Posted: Sun Mar 29, 2026 8:19 am
by AliGW
In the real file, where the layout grids are deeper, all layout grids have the top cut off when I scroll forwards (from Home only), but not when I scroll back. I am sure this has something to do with the banner settings I have. I imagine what I really need is a different offset when scrolling down, but this would not appear to be possible.

Thanks again for the advice.

Re: Using Layout Grids as Bookmarks

Posted: Sun Mar 29, 2026 2:36 pm
by crispy68
I think part of the issue is that the margin is not figured into the overall height of your header. By using padding, it will be part of the height and the javascript will now be able to calculate things better. However, due to the menu being part of the header and then changing to sticky (which removes it from the header at that point) this changes the height of the header and using the header as a bookmark doesn't work well. Using a standalone bookmark for the top is the best solution in this case.

Try this:

Master page:
1. Click on your headerLayoutGrid and remove the 50px margin and add 50px top padding in the grid.
2. Click on Dividers and add a top Rectangle divider with height of 50px and color it red to match background.
3. Move your HomeBookmark from the index page to the Master page. Place it in the top left of the page underneath your HeaderLayoutgrid. You may need to hide your header to place it there. Make sure to enable smooth scroll to the book mark.
4. In your menu, set the home button to this bookmark on the master page.

On Index page:
1. Change all of the offsets to match the height of your sticky menu which is 86px.

Re: Using Layout Grids as Bookmarks

Posted: Sun Mar 29, 2026 3:06 pm
by AliGW
Thanks, Crispy!

I have just completed the first draft of the site, so I've had enough for today, but I shall try your suggestion tomorrow. :)

Re: Using Layout Grids as Bookmarks

Posted: Mon Mar 30, 2026 5:34 am
by AliGW
2. Click on Dividers and add a top Rectangle divider with height of 50px and color it red to match background.
I am stuck at this point. I could not see a rectangle divider option, but I set one up with the settings you mentioned and I see nothing, neither on the page nor in preview.

In every other way, it works. So, I just need to get my red strip back on top.

Re: Using Layout Grids as Bookmarks

Posted: Mon Mar 30, 2026 2:29 pm
by crispy68
It's possible that the Rectangle shape divider is included in the extra dividers pack here: https://www.wysiwygwebbuilder.com/free_extras.html

Re: Using Layout Grids as Bookmarks

Posted: Mon Mar 30, 2026 2:33 pm
by Pablo
You should have the rectangle divider by default.

Re: Using Layout Grids as Bookmarks

Posted: Mon Mar 30, 2026 3:05 pm
by AliGW
I might be looking in the wrong place, but the dividers tab in the layout grid properties only has None in the type drop-down. Am I in the right place? If so, am I missing something?

What are the exact settings that I need on that tab?

The divider looks like it's there, but it is white - it's not the dark red that I have set it to.

Re: Using Layout Grids as Bookmarks

Posted: Mon Mar 30, 2026 4:25 pm
by crispy68
There should be a bunch of dividers under the type dropdown of which Rectangle should be one of them.

Image

Re: Using Layout Grids as Bookmarks

Posted: Mon Mar 30, 2026 4:52 pm
by Pablo
Maybe you have changed the system folder?
https://www.wysiwygwebbuilder.com/commu ... hp?t=76719