Generally all Hindus Visit temple for to perform prayers. But according to Hindu ideology why we need temple as we can perform prayers at our home as well?
What Is the Need of Temples In Hinduism ?
There are thousands of temples all over India and all over the world of different sizes, shapes and at different locations.
A Hindu temple is a unification of the idea of Arts, Dharma, Beliefs, Values, Devotion Rituals etc.Temples are consciously constructed to make us families with divinity of god. People visit temples to communicate with gods and offer their prayers. Temples also act as spiritual centers where discourses, meditations bhajans special poojas are often arranged , where people celebrate festivals .
Some temples also serves the purpose of religious schools , where people /students can learn more about Hinduism traditions , scriptures etc. Some of them also have their own Ved-Path shalas , where interesting students can stay and learn Vedas and other texts for some years and can become priests or pundits.
Library of manuscripts – From ancient times temples are also used to store manuscripts s well as spiritual books as a library .
Here is the reason given in Shreemad Bhagvat purana of why wise people started deity worship in temples.
द्रुष्टवा तेषांमिथो नृणामवज्ञानात्मनां नृप |
त्रेतादिषु हरेचर्या क्रियायै कविभि: कृता ||३९||
dṛṣṭvā teṣāṁ mitho nṛṇām avajñānātmatāṁ nṛpa
tretādiṣu harer arcā kriyāyai kavibhiḥ kṛtā
My dear King, when great sages and saintly persons saw mutually disrespectful dealings at the beginning of Tretā-yuga, Deity worship in the temple was introduced with all paraphernalia SB 7.14.39
And here in this chapter SB 11.27: Lord Kṛṣṇa’s Instructions on the Process of Deity Worship. Lord Krisha himself describes what is the importance of temple building .
मदर्चां संप्रतिष्ठाप्य मन्दिरं कारयेद् दृढम् |
पुष्पोद्यानानि रम्याणि पूजायात्रोत्सवश्रितान् ||50||
mad-arcāṁ sampratiṣṭhāpya mandiraṁ kārayed dṛḍham
puṣpodyānāni ramyāṇi pūjā-yātrotsavāśritān
The devotee should more fully establish My Deity by solidly constructing a temple, along with beautiful gardens. These gardens should be set aside to provide flowers for the regular daily worship, special Deity processions and holiday observances. SB 11.27.50
प्रतिष्ठाया सार्वभौमं सद्नना भुवनत्रयं |
पूजादिना ब्रह्मलोकं त्रिभिर्मंत्साम्यतामियात् ||52||
pratiṣṭhayā sārvabhaumaṁ sadmanā bhuvana-trayam
pūjādinā brahma-lokaṁ tribhir mat-sāmyatām iyāt
By installing the Deity of the Lord one becomes king of the entire earth, by building a temple for the Lord one becomes ruler of the three worlds, by worshiping and serving the Deity one goes to the planet of Lord Brahmā, and by performing all three of these activities one achieves a transcendental form like My own.SB 11.27.52
Not all the people are having some sort of arrangement of worshiping gods in their own houses so they also can easily go to the temple for the purpose
So a temple is a very important aspect of Hindu Dharma where people of al the kind can offer their worship to many gods and can perform rituals , poojas etc. And can get the close to divine and can experience the union with the divine.
God is eternal, without any form, omnipresent. To think of Him as possessing any form is blasphemy. But the secret of image worship is that you are trying to develop your vision of Divinity in one thing.
Idolatry in India does not mean anything horrible. It is not the mother of harlots. On the other hand it is the attempt of undeveloped minds to grasp high spiritual truths.
Man is to become divine by realising the divine. Idols, or temples or churches or books are only the supports, the helps, of his spiritual childhood; but on and on he must progress.
It is difficult for people to think of formless and omnipresent God which is why idol worship was introduced.
We may worship anything by seeing God in it, if we can forget the idol and see God there. We must not project any image upon God. But we may fill any image with that Life which is God. Only forget the image, and you are right enough---for "out of Him comes everything". He is everything. We may worship a picture as God, but not God as the picture. God in the picture is right, but the picture as God is wrong. God in the image is perfectly right. There is no danger there. This is the real worship of God.