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
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.
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).