Forum Replies Created
-
AuthorPosts
-
wbParticipant
I commented out line 74...79 and it worked a treat, all of the google font links in the header have gone, thanks again Victor.
wbParticipantHi Victor many thanks for this, my code from 3.4.1 (sorry should have mentioned this earlier), the latest version, is slightly different, below shows line 70...92:
function genesis_sample_enqueue_scripts_styles() { $appearance = genesis_get_config( 'appearance' ); wp_enqueue_style( // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion -- see https://core.trac.wordpress.org/ticket/49742 genesis_get_theme_handle() . '-fonts', $appearance['fonts-url'], [], null ); wp_enqueue_style( 'dashicons' ); if ( genesis_is_amp() ) { wp_enqueue_style( genesis_get_theme_handle() . '-amp', get_stylesheet_directory_uri() . '/lib/amp/amp.css', [ genesis_get_theme_handle() ], genesis_get_theme_version() ); } }
I'm not using amp on the site in question, so could I comment out from line 74...90 and nothing will break, or just line 74...79 only as you are suggesting? I'm presuming commenting out the whole of genesis_sample_enqueue_scripts_styles() is going to cause an error.
wbParticipantgreat thanks, have switched themes for the time being, must of caught the upgrade just as it was released which is always a bit chancy
wbParticipantHappened to us too, waiting for reply from support, suggest you file a ticket from here: https://my.studiopress.com/help/
-
AuthorPosts