The key thing is that you have to think about one queen per column, not try to place them all at once. If you guarantee that there's one queen in each column of the board, half the problem solves itself because they can't be in the same column anymore. From there on it's just a matter of making sure they don't attack each other on diagonals and rows.
The method that works best is to go column by column from left to right, and in each column try from top to bottom. You place a queen in a row, check that it doesn't attack any of the ones you've already placed (neither diagonally nor in a row), and if it doesn't work, backtrack and try the next row. For example, in column 1 you can start with the queen in row 1. In column 2 you can't put it in row 1 or on the diagonals, so you try row 3, row 4, etc. If at some column you can't find a valid spot, you backtrack to the previous column and move that queen to another row, and keep going from there.
There are several valid solutions, so there's no single correct path. The first solution you're typically going to find has the queens in positions like (1,1), (2,3), (3,5), (4,2), (5,8), (6,6), (7,4), (8,7) or something similar, depending on where you start. Patience is everything here. Some people say that drawing an actual board or using an interactive app helps a ton to visualize, because following it just mentally is pretty tedious.