That’s not how that file works, and including it will just load the class definition, it won’t create a Twenty_Twenty_One_Child_SVG_Icons
object or override Twenty_Twenty_One_SVG_Icons
. It’s also not how child themes work. Child themes let you override templates specifically, not arbitrary files and classes.
Instead, use the twenty_twenty_one_svg_icons_{$group}
filters to modify the array in your child theme. The filter is the best option. E.g. twenty_twenty_one_svg_icons_social
. You will also need to filter twenty_twenty_one_social_icons_map
so it detects new social network URLs you add.
Related Posts:
- Use Icomoon external svg file with
- How do I include SVG file used as featured image?
- Error while loading wordpress site “Fatal error: Uncaught Error: Call to undefined function twentytwentyone_the_html_classes() in /home
- Where to get information about array fields in $_REQUEST?
- Is it safe to use $_SERVER[‘REQUEST_URI’]?
- Namespacing WordPress project according to FIG standards
- Redirect to Page after Post Submit
- How will php 7 affect WordPress?
- automated tests as a user?
- WordPress Wysiwyg Content not being displayed
- Problems with function on function.php
- Want to create Child theme, but already edited Parent theme css files and some php files
- Switching between custom templates in a post type of the admin menu
- Adding code to child theme functions.php to override parent theme behaviour doesn’t work
- How to retrieve the content (with a specific ID) via ajax by clicking a link tag
- How to add a custom id to each post URL in wordpress
- WordPress: Remove link in the_tags
- How do I display the function the_content in this loop?
- Set WP_MAX_MEMORY_LIMIT higher than PHP.ini memory_limit
- Custom category code not showing all posts
- Custom Plugin For Converting CSV To MySQL
- Displaying NextGen Gallery using value from meta not working
- Apache Fallback instead of add_rewrite_rule
- Correct folder permissions?
- Link posts to pages for breadcrumbs
- Can I install/embed WordPress on a ‘single page’?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu
- How can I add extra word in permalink when someone click download button?
- Why WordPress won’t update via VPN?
- Create custom permalinks to show Custom Post Type’s relationship?
- Can I use a jQuery Ajax request in Code Snippets Plugin for WordPress?
- Add user ID to woocommerce customer dashboard
- How to do a code in php and have text before it? [closed]
- Which PHP page is the Default Posts Page
- Converting Y-m-d to a date with a Month name? [closed]
- Need to put a script above tag in header.php – WP 5.7.1
- Code Executing Too Late?
- New walker for walker_nav_menu to change inside container data
- Add data-id attribute to child page links
- Isotope Drop Down Categories Filter Function
- Getting users with a specific meta data and then querying their posts?
- Making your own custom post views count
- How to remap one of the TinyMCE Advanced Editor button to open the wordpress media library?
- How to allow download url redirection only if user logged in WordPress site?
- trying to get wp_get_attachment_url to output clickable link
- Conditional multidimensional arrays and array_map
- A $_POST should occur when submit form but is not?
- Help Fallback (thumbnail)
- Select through customizer the template part to be viewed
- difference between sanitize_email ,FILTER_VALIDATE_EMAIL and input email type in html5
- Concatenate string to the_field()
- Conditional featured image with youtube thumbnail
- How to change thumbnail src attribute?
- Get wp_current_user_id using PHP and MySQL
- ACF Unexpected T_CONSTANT_ENCAPSED_STRING [closed]
- Nav-Menu not showing up
- Show different website layout if no sidebar added
- Showing Subcategory Name/Link Instead of Parent Category
- Get URI from PodPress using PHP
- How to pass hook variable to function?
- What does $2$3 mean? [closed]
- How to use wp_send_json() and output the value with ajax?
- How do you remove header sitewide from mobile only?
- error in my request with meta_key and meta_value
- How do I get pagination for get_posts() in WordPress or do I have to rewrite the whole code?
- Update Images after edit via php
- Drop down question
- How to move a post from one category to another
- custom mailchimp form using HTTP API
- How to get the url of the entry in which an image belongs
- How to override theme’s public static function inside of a trait?
- pass datetime using wp_localize_script to frontend from settings page
- Advanced Custom Forms PHP formatting for do_shortcode
- ACF under category name in shop page [closed]
- WordPress Recent Posts – Loop
- Changing default WPMU emails to be send thorugh Campaign Monitor Transactional emails
- Can’t add to time? [closed]
- not able to access $_POST on backend profile update
- WordPress Single Post Pagination Numbered and Navigational
- Displaying 3 Category Posts differently
- How can I export data without using any import/export plugin
- I changed the password for the database user of my website, updated wp-config.php and wordpress asks to be reinstalled
- Post formating on Home page
- Category – “No content found”
- divide custom field values in div every two values
- How can I correctly POST to a WordPress page?
- WordPress – Image href for home menu nav not working
- Search box background on a different page template
- Cron job to call php to email last 24 hours posts
- WP Ecommerce: Display the “Order Notes” as column in the Sales Log [closed]
- Load php function with AJAX on modal window
- Hide page title
- Edit Image/Image Details – Replace button missing
- A next page function with shortcode?
- How to dynamically change webcam photo timestamps
- get user role. parameter id return type string [closed]
- How to improve wordpress site creation process to increase productivity.
- How can I change the URL via add_rewrite_rule()
- How can I change the location where the custom field is displayed in the Quick Edit tab in WordPress