I have created configurable swatches for color attribute in my custom theme.The color swatch is displayed in product list page. But it is not displaying in product details page.Kindly anyone guide me to solve my issue.
If the custom theme is not built upon
rwd/default, configurable swatches of Magento will not work with it. Even if it is, it seems to override the product page templates without adding the configurable swatches feature.
You have several options:
There is a free extension that helps you to make it compatible with other themes, you can give it a try: https://github.com/tmhub/catalog-configurable-swatches
Ask theme vendor for support / complain
Use a different solution that's independent of themes. I recommend Easylife Switcher by @Marius: https://github.com/tzyganu/Switcher
I found the answer. The problem was in stylesheet. It was like,
.product-options dl:first-child: display: none !important;
Now I changed it to
.product-options dl:first-child: display: block !important;