How to fix enqueue_styles error for a twenty-seventeen childtheme

I think you can try with this code below. function childtheme_enqueue_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’, array(), wp_get_theme()->parent()->get(‘Version’) ); wp_enqueue_style( ‘child-style’, get_stylesheet_uri(), array( ‘parent-style’ ), wp_get_theme()->get(‘Version’) // Note you must provide a version into the child theme ); } add_action( ‘wp_enqueue_scripts’, ‘childtheme_enqueue_styles’ );

Remove Google Fonts from parent theme within a child theme [closed]

As Buttered_Toast mentioned, I think the hook you want to use is wp_enqueue_scripts rather than after_setup_theme. Changing the priority is also a good idea to make sure your function trigger after the initial call from the parent theme. So your function would be: /** * Remove Accelerate Google fonts */ function remove_accelerate_google_fonts() { wp_dequeue_style( ‘accelerate_googlefonts-css’ … Read more

How to handle a large child theme

I assume this will be a lot of extra load on the site to have all these extra files? Or are the parent theme files “skipped” and “doesn’t count” if I have them in my child theme? if the child theme file is slower than the parent theme file then yes if the child theme … Read more

Custom Post-Rename Function Does Not Function in WordPress 6.x

The call to get_the_ID() possibly worked by happy coincidence of there being an available post object to pull the ID from. However, realistically you should have been looking at data available to the filter for this ID instead, here’s how. First update you add_filter declaration to bring in the second variable from wp_insert_post_data. add_filter( ‘wp_insert_post_data’ … Read more

How to set the background color of a template part (Header/Footer) in Twenty Twentythree?

The Twenty Twenty-Three theme comes with an inbuilt “Editor” option that exists under the “Appearance” menu. Appearance >> Editor Once you click on the “Editor(beta)” option then you can select the header or footer area and after that, you can customize their stylings like Background Color, Text Color, and Link Color. The theme also provides … Read more

WordPress Custom Fonts Problem! [closed]

In /wp-content/themes/centric-pro/style.css, delete line 88 through line 113 this removes all the font-face declarations. On line 88 paste the following: @font-face { font-family: ‘GothamRounded-Bold’; font-style: normal; font-weight: 400; src: url(‘fonts/GothamRounded-Bold.eot’) format(’embedded-opentype’), url(‘fonts/GothamRounded-Bold.otf’) format(‘opentype’), url(‘fonts/GothamRounded-Bold.woff’) format(‘woff’), url(‘fonts/GothamRounded-Bold.ttf’) format(‘truetype’), url(‘fonts/GothamRounded-Bold.svg#GothamRounded-Bold’) format(‘svg’); } @font-face { font-family: ‘GothamRounded-Light’; font-style: normal; font-weight: 400; src: url(‘fonts/GothamRounded-Light.eot’) format(’embedded-opentype’), url(‘fonts/GothamRounded-Light.otf’) format(‘opentype’), url(‘fonts/GothamRounded-Light.woff’) format(‘woff’), … Read more

Why does twentysixteen take a free hand in dealing with longstanding usability principles? [closed]

Your question is totally misdirected and should be directed at core developers on wordpress.org. You are also totally missing the whole point of the core bundled themes. The main purpose of bundled themes are to showcase new developments in core and what the core developers find interesting. They are not there to please the masses … Read more