Enable or disable graph grid

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

hello i can not find the “enable grid” on the canvas setting or landing page.
thanks

Things I have tried

Just mouse right click and “Snap to Grid”?

I’ve tried but the grid stays

What do you want? Do you want to hide the grid points?

If you want to disable the grid, you can use this CSS snippet:

yes i want to hide the grid points

hi Saf-Dmiitry - where i find the SVG element? canvas -background svg element?
thanks

where i find the SVG element? canvas -background svg element?

You don’t need to. Just put the above-mentioned snippet in the <your vault>/.obsidian/snippets/ folder and enable it from the “Settings > Appearance > CSS snippets” menu in Obsidian. This way you can toggle the canvas grid on and off.

1 Like

[quote=“Canvas Gridlines - How to Disable, post:7, topic:50197”]
svg.canvas-background { display: none; }

it’s not working for me…

@Dubo You may try this:

svg.canvas-background {
    display: none !important;
}

Otherwise, maybe newer versions of Obsidian use other underlying structure to encode canvas grid. I tested this on Obsidian v1.2.8.

Or this one @Dubo:

.canvas-background circle {
  display: none;
}

Maybe the error is how I copy the text in.
i take the svg.canvas-background {
display: none !important;
} and copy it to folder snippet as a rtf .


and then i save it as css. - correct? and enable it from the “Settings > Appearance > CSS snippets” menu in Obsidian.

is this ok?

and thanks for your time!! best

I think the problem is changing a .rtf file to .css. See here:

1 Like

The snippet should be saved as plain text and the snippet file should have the .css extension, like canvas-hide-grid.css. After putting the snippet file in the <your vault>/.obsidian/snippets/ folder you should be able to see the corresponding toggle in the “CSS snippets” section (“Settings > Appearance > CSS snippets” menu in Obsidian).

1 Like

Thanks lot!!! now is all ok :pray: