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

Can anyone help me with replace genesis post excerpt with yoast meta description and if there is no meta description show the excerpt?

Remove: add_filter( ‘get_the_excerpt’, ‘replace_post_excerpt_filter’ ); function replace_post_excerpt_filter($output) { return $output; } from your code, and you should find it works. The trouble with nested functions, as you have here, is that once the parent function is called the first time, it defines the inner function, but when the parent function is called the second time … Read more