Objective. To analyze the application effect of image-text communication-based healthcare education combined with shifting of attention on child patients undergoing inguinal hernia repair under general anesthesia. Methods. A total of 110 child patients with inguinal hernia treated in our hospital from January 2020 to January 2022 were selected as the study subjects and divided into the control group (CG, routine intervention measures) and the research group (RG, image-text communication-based healthcare education combined with shifting of attention) according to their preoperative intervention plans, with 55 cases each. After surgery, the child patients’ psychological status, crying and shouting situation, and occurrence of complications were evaluated to compare and analyze the intervention effect of the two groups. Results. The child patients’ positive rate and anxiety incidence rate of psychological status evaluation were obviously lower in RG than in CG (P < 0.05), and the daily frequency of crying and shouting was significantly lower in RG than in CG (P < 0.05); the single time of crying and shouting was significantly shorter in RG than in CG (P < 0.05); after surgery, child patients in the two groups had different degrees of infections, subcutaneous emphysema, and scrotal edema, but the total incidence rate of these complications was obviously lower in RG than in CG (P < 0.05); after surgery, no significant between-group difference in child patients’ FLACC scores immediately after being transferred to the ward was observed (P > 0.05), and at postoperative 1 h, 3 h, and 5 h, the FLACC scores of RG were obviously lower than those of CG (P < 0.05); and according to the investigation results, the total satisfaction and number of very satisfied parents in RG were greatly higher than those in CG (P < 0.05). Conclusion. Before child patients undergoing inguinal hernia repair under general anesthesia, implementing image-text communication-based healthcare education combined with shifting of attention can effectively improve the child patients’ postoperative psychological status and crying and shouting situation and is conducive to preventing postoperative infections, pain, and other complications and promoting postoperative recovery. The combined intervention has potential utility in reducing child patients’ high-risk adverse reactions during the perioperative period and ensuring smooth operation, which is generally recognized by the child patients’ family members.