Combine GridLines and Ticks in a Plot?

MMA 11.3. I can add GridLines to a Plot (GridLines → Automatic), but then when I try to add Ticks to the same plot using Ticks → {Range[0, 2 pi, pi/2}], the Grid lines go away. Here are screeshots of 2 successive input cells.

Thomas,

You need to reverse things a bit. Specify the Gridlines and use Ticks->Automatic:

For example:

Plot[Sin[x], {x, 0, 2* Pi}, 
 GridLines -> {Range[0, 2 Pi, Pi/2], Automatic}, 
 Ticks -> Automatic]

or Specify both Gridlines and Ticks if you want to control the ticks more precisely, such as:

Plot[Sin[x], {x, 0, 2* Pi}, 
 GridLines -> {Range[0, 2 Pi, Pi/2], Automatic}, 
 Ticks -> {Range[0, 2 Pi, Pi/2], Automatic}]

Regards,

Neil