You can do it easily with jQuery by using .eq() to add a specific class to each i element.
Example:
Add a class to your i element from PHP.
<?php wp_list_pages('link_before=<i class="retina_icon"></i>&link_after=<br >'); ?>
Then add another class to it with jQuery.
jQuery('.retina-icon:eq(0)').addClass("retina-icon-1");
jQuery('retina-icon:eq(1)').addClass("retina-icon-2");
Related Posts:
- Why is wp_list_pages altering $post->ID of the page?
- How to add a custom field in the advanced menu properties?
- How to enable custom fields for pages (if not a bad practice)?
- Adding a custom field to the site identity menu
- How to add add_meta_box to specific Page Template?
- Having different sidebar content for MANY pages?
- Add meta data to the menu
- Custom Page Template [closed]
- Create a select drop down of available menus
- Calling Specific Pages with wp query Part II
- Loop through two different sets of custom fields
- Dynamic User State & City selection
- Add input field to ‘Pages > Edit Page’ through functions.php
- wp_list_pages sort order is different for different languages [closed]
- wp_list_pages: only show subpages on the parent page?
- Calling custom fields for pages (not posts)
- Creating a custom menu/widget area
- Nav Menu – Add class based on meta keys
- How to Display pages with a Custom Fields in one page
- wp_list_pages() but only show children on the branch you are on
- Add image to menu item with ACF
- Advanced Custom Fields dynamic update_field
- Declaring in variables [closed]
- How to add a custom field in the advanced menu properties?
- Displaying different page links on different pages
- get_post_meta() retrieves meta from a specific post on pages, not the page currently viewed
- How to pass page as an argument like post in WordPress?
- Walker class for sub-menu with ACF fields
- How can I use custom properties to set different background on different pages?
- Displaying pages with a specific custom meta
- Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs
- Display a different image for each page with editor
- wp_list_pages Hierarchical Help
- Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
- Populate wordpress menu with link to custom field value (file download)
- Check if page has subpages
- Parent/Child pages
- Display the output from Custom User Fields from a WordPress user profile on a WordPress Custom Page
- Show Custom field value instead of title in WP Menu
- How to make menu country specific?
- Load one page with parent and child pages
- Page template is missing fields or is invalid when I updating the template
- How to check custom fields from functions.php
- Override edit_custom_walker.php to conditionally show input depending on menu position
- Custom Field select list is truncated
- Getting content from custom fields of different pages on a single page
- Decouple page name from page title
- How do delete a meta key?
- Add custom fields to specific menus
- Add CSS class to posts with certain meta key
- WP_Query – Order results by meta value
- Orderby meta_value only returns posts that have existing meta_key
- Sort posts by custom field numeric value using dropdown
- How to position a custom field before the editor
- How can I display all values of a custom field from posts with a certain value of another custom field or from certain post types?
- searching in custom meta field
- How to add upload field in a custom taxonomy?
- Display thumbnail from custom field
- Bulk move (or copy) from a custom field to the post content?
- Getting Custom Field data from a page hierarchy
- Custom contact form 7 select with custom values [closed]
- wp_list_pages – show pages immediately 1 level below current level
- limit amount of photos uploaded per cpt post
- Problem with adding exta field in metabox in custom post type
- Add WYSIWYG to Image Description field
- Show ACF fields only on certain page in the backend
- Create Multiple File Upload Metabox in WordPress
- WP_User_Query pulling ACF to loop
- how to put a custom field value in variable
- Custom Profile Fields move from BBpress to BuddyPress
- How can I output a list of values for a custom field, and posts with those values?
- Custom code for WordPress dynamic menu
- Add first url to custom field on publish_post
- Use meta_query to get title of associated post
- Limits, not all post are showen when querying for posts by view count
- Advanced Custom Fields WYSIWYG More tag
- How to make custom fields respect paragraph breaks
- modify wordpress custom field value – strip character if exists
- Looping inside block return
- Sortable Custom Columns not sorting correct
- Is there a size limit to the value you can save in a custom field?
- Sort posts by clicks on download button
- Showing Custom Fields on Parent Page
- Custom Theme Fields in Settings Menu – apply filters to one of those fields?
- Show Custom Field of Current Page in For Loop
- Custom Field & Gravity Forms [closed]
- Redirect DRAFT Posts to a Custom URL (Custom Field) : Currently 404 Page
- multiple meta_query and orderby question
- How to get the Page Name of the current page?
- How can I order these pages in this navigation bar on this old wordpress theme?
- SQL query to change the value of a Custom Field
- Using WP page password protection as defacto login
- want to add video upload option for front end user
- Adding fields to attachment – only shows when inserting new attachments
- Saving and using Custom Field in user settings/profile “Checkbox list”
- How do I use foreach to get content from a custom-field in multiple posts?
- How to Pull Out Twitter Summary Data in other areas of my template?
- Custom fields driven site. I want to make a visual editor driven page template. How?
- Adding a post to a page
- Dynamic background image used in css after selector