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
- Individual Widgets per Page
- Apply the_content filter to a custom field with multiple values
- Auto sort the wp-admin post list by a meta key
- Adding another state (spam, reject, approve) to wordpress comments?
- Filter archive.php by custom meta
- Get updated meta data after save_post hook
- Show User Their Password
- How to show only parents subpages of current page item in vertical menu?
- TinyMCE in Custom Metabox not loaded after upgrading from WP 3.1.4 to WP 3.2
- How to reload the role specific registration form on validation errors?
- Currency (price) formating on custom fields
- Adding Custom Text Area to WooCommerce Product
- Gravity Forms: Create fields programmatically
- Order by value in serialized custom field
- Custom image sizes for custom field media uploads
- converting custom field date format
- Possible to add a meta field for css attribute to the editor Advanced panel?
- How to create a shortcode to print specific values stored in a post meta array?
- How to add upload video option in wordpress for user?
- Adding auto-complete to custom gravity field not working
- Search in Archive Pages by subcategory, tag, custom field and year
- Custom WP_Query for WordPress Search Results with meta_query
- Change order of posts
- Meta Query And/Or
- URL Rewrite fires when retrieving a custom value?
- How to store post meta in an array
- Set checkbox as checked by default in a metabox
- ACF form edit front end post title does not change permalink
- Can I use a Custom Field as the Featured Image URL?
- Highlighting top level link when viewing one of it’s sub-pages, which are not linked in the menu
- Copy price categories to custom field
- Sanitize user input fields before wp_insert_post
- Use Advanced Custom Fields – replace line of code that hardcodes the tag into the template
- Increment user meta data by 1 each time a page is visited
- Advanced Custom Fields and Post Meta Fields Relation
- Can’t Output get_post_meta?
- KEY and VALUE custom field issue
- Stripping and/or altering the content of a custom field (video URL)
- Custom field outside the loop and inside an array
- How to get data from user meta custom fields created with acf-pro plugin?
- Add link to wordpress field data
- Adding text box with add_meta_box
- Is it possible to manage Multiple Custom Fields with Some Relations
- Retrieving and inserting data in custom fields
- How to add custom fields to images for image source text and URL
- Convert many posts from having a specific meta_key to use a post_format
- Custom fields: my custom checkbox area doesn’t seem to work
- get_post_custom_values not working
- add multiple values (array) to post meta_input
- Assign class to Drop Down Selections in WooCommerce Products Custom Fields