wp_list_pages
allows you to include a walker function. That would give you complete freedom to add any classes you want, but it’s no a beginner’s method. You could start by reading this.
If you want a simple search and replace on the class, as your question seems to indicate, you can use the wp_list_pages
filter like this:
add_filter ('wp_list_pages','wpse241119_replace_class',10,3);
function wpse241119_replace_class ($output, $r, $pages) {
$output = str_replace ('page-item number', 'hvr-underline', $output);
return $output;
}
Related Posts:
- Add theme templates for child categories into the template hierarchy
- Load child template based on parent
- Custom Field returning Numerical Value for Image rather than URL
- Injecting a custom sql query into a page/theme
- How to display all subpages and short by year
- Modify available templates (in dropdown)
- Parent/Child pages
- How to perform str_replace on the results of wp_list_pages
- How to show children pages as array
- Menu order of parent menu from perspective of child menu
- 404 on child page template
- Solutions for generating dynamic javascript / CSS
- Import media to online WordPress from local development
- How to add a checkbox element to attachments editor with example
- Auto get_header and get_footer on every template?
- What is the right way to include a wp-admin file in your theme?
- Nested comments ignored for max per page in wordpress
- Theme Check gives: Required: This theme doesn’t seem to display tags?
- Is it possible to use line break in theme description?
- How does WordPress decide what template to use as frontpage
- get_option function
- Override Current Theme Setting in wp_config.php
- modify a output of a widget
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- WP Gutenberg custom block – generate theme colors from SASS and use them in the inspector and php callback
- Which is the simplest theme for WordPress to use it as your base?
- “Cheatin’ uh?” error message on multple theme directories
- Is tag default in WordPress?
- “Display Site Title and Tagline” checkbox not working?
- Convert PHP readfile to WP_Filesystem
- How to call wp_list_comments() with callback outside the loop
- why adds ‘»’ symbol?
- Infinite Scroll not working in own theme
- How can I exclude specific authors from wp_list_authors
- how to wrap tag in tag html to wordpress menu conversion
- Understanding the WordPress template hierarchy
- How to display the content for given page ID withot the wrapper?
- Do I need normalize.css when developing my own WordPress-theme?
- How to float an image in Gutenberg
- Force a specific template based on the URL
- Manage base theme with version control?
- Using $post->post_name in body id causing error: Trying to get property of non-object
- List child pages by slug not ID?
- buddypress: how do i make the group description excerpt shorter?
- Bootstrap card columns change images size
- Can´t access child theme´s scripts dependencies found in parent
- Prefix best practice, should we use framework name or theme name?
- Call to undefined function add_menu_page() on theme activation
- The Content is not Wraping in tag
- Using page-id-{ID} from body_class() in local dev, versus live staging
- Should all references to a text domain be to my current theme?
- WordPress Settings API not saving options
- Custom image size vs CSS sizing
- Unique design inside a specific category’s url
- Rewrite the HTML markup of wp-login.php
- Making a WordPress theme based on twentyten
- Clearing dummy data before launch
- multiple html/css files for wordpress theme?
- Create new wordpress theme with no need update
- Add image URL automatically to custom field?
- content filter (add_filter) for category description?
- Theming media inserts
- How to use Canonical URL meta tag to avoid duplicate content issues with WP home pages
- getBoundingClientRect() showing different values on load vs scroll
- How to update mark-up of a gallery block in a custom theme?
- wordpress script_loader_tag in function.php
- Host Private Custom Theme
- Why not works the search.php file?
- How do I make my terms for each product display via foreach loop? (woocommerce)
- WordPress Insert ads after every 5th post
- How to get custom logo with REST API instead of get_theme_mod();
- How can I change this SVG shape that’s generated?
- Can I set rest API endpoints from within a theme?
- Theme starter content translation is not working
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How to add an image to a theme page template in code?
- Looking to create an “update theme” functionality for a custom front-end dashboard
- remove_action(‘genesis_header’,’genesis_do_header’) hook not working
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- Breaking Categories Up into Individual Divs
- Different stylesheet for different pages not working fully
- Can I use WP Multi-site on a sub-domain with a different theme but use all the original site’s posts/pages?
- How to Apply Category Filter to Pagination
- Strip HTML tags on custom code from the_content
- Get all Custom Post Types
- wpdb->insert adds too many rows
- wpalchemy repeating fields dropdown issue
- Does WordPress require that your submitted theme supports multiple menu levels?
- WordPress loop not working on blog.php page
- Option to show/hide widget depending on is_home?
- Add Dynamic Sidebar to Exisiting WordPress Theme [closed]
- Why does the first loop take arguments from the second loop?
- How do I middle-align my header menu items in WordPress [closed]
- Theme layout for home page [closed]
- How to add Dummy content when active wordpress theme without xml import?
- Is there any reason that other theme elements (such as nav menus) shouldn’t be within the loop?
- Is there any way to show child theme in theme detectors?
- Creating image grid on products page in wordpress
- Insert gutenberg blocks into template
- What is the point of using archive.php instead of index.php?