Cocoa mirids are the most important insect pests of cocoa in West Africa. This study investigated the effect of environmental parameters that are modulated by overhead shade, that is, light intensity and temperature, on nutrient and phenolic concentrations in cocoa and their subsequent effect on mirid feeding. Eight‐month‐old cocoa seedlings were maintained for 50 days in two growth chambers set to day temperatures of 25 or 30°C. Each chamber had sections with different light intensities (541, 365 and 181 μmol m−2 s−1 photosynthetically active radiation [PAR]). For the field studies at Akim Tafo in Ghana, 8‐month‐old plants of three cocoa clones were subjected to shaded (PAR = 180 μmol m−2 s−1, between 11:00 a.m. and 12:00 p.m.) and unshaded (PAR = 1,767 μmol m−2 s−1, between 11:00 a.m. and 12:00 p.m.) treatments for 50 days after which nutrient measurements and mirid choice tests were carried out. No significant effect of environment was observed on the phenolic concentration of stems under controlled environment chamber conditions. However, in the field, the phenolic concentration of stems was significantly greater for unshaded compared with shaded plants (p = .04). Under controlled conditions, the leaf nitrogen concentration increased slightly with light intensity (p = .003). The same trend was seen in stems but only at 30°C. In the field, the impact of overhead shade on nitrogen varied between cocoa clones. The concentration of carbohydrates in both leaves and stems in the field was higher under unshaded conditions. When subjected to feeding tests, stems from unshaded cocoa had significantly more mirid feeding lesions (p = .003) after 24 hr exposure to mirids compared to shaded cocoa. Mirid feeding therefore appears not to be deterred by the higher phenolic levels but rather there was a preference for cocoa tissue grown under unshaded conditions. These findings highlight the need to consider the growing environment of cocoa clones when screening for varieties with resistance to mirids.