I made procedural texture, but it is only visible in material viewport shading but not in rendered view or rendered image.
Can anyone please advise me what is wrong?
The problem is with the 'Add Shader' node before the color ramp node. This is because the 'fac' input to the color ramp node should be a value. Instead the 'Add Shader' node gives a shader which the colorramp node can't understand properly.Also, ideally the 'Add Shader' node should take shaders as inputs instead of color or values.
In the place of the 'Add Shader' node, use 'Math' node and change it to add.Math node can be accessed by Converter>Math
You are using an Add Shader, but aren't inputting any shaders there but only values from your textures. Replace that Add Shader by a Color - Mix RGB node and switch that to Add. Then it should work as expected.