Display Different Background Image for list of child pages
-
Hello, I have successfully modified my theme to display links to child pages and grandchild pages within the parent page. I would like each child link (or grandchild link) to have a different background image. (Example:
The Parent Page is called “Products, a child page is called “Indoor Plants”. There are 2 grandchild pages “flowering plants” and “tropical plants” I would like each of the grandchild page links to have a different background image ->flowering plants to have the background image floweringPlants.jpg and tropical plants to have the bg image “tropicalPlants.jpg”
I have tried using css in the style sheet: (see css below) but this has not worked. I would be very grateful is someone could kindly tell me how to accomplish this? Thank you so much!.displayChildren .page_item page-item-150 { background-image:url(images/floweringPlants.jpg); }
- The topic ‘Display Different Background Image for list of child pages’ is closed to new replies.