Tag Info

Hot answers tagged

2

The list you are referring to was done start to mid 2013, which can be a bit outdated as the was major improvements/new feutures like The TINYMCE editor undergone major modifications and upgrades as from version 3.9 Version 4 saw the introduction of new shortcodes like the video shortcode and audio playlist, just to name a few In the back end plenty of new ...


1

Pretty straightforward answer is both are the correct. In first method you are breaking down the process in two steps. That is needed in case you want to register some scripts but want to load them conditionally at some later time. For example you may want to load some script only when some second script requires this first script. In this case you can ...


1

You are using array_push() incorrectly. Do this: $classes[] = 'new-class'; Or this: array_push( $classes, 'new-class' ); But not: $classes[] = array_push( $classes, 'new-class' );


1

Working off of Sepster's answer, the 2014 theme I am working with needed this further addition (here's the full solution that worked for me): .masthead-fixed .site-header { position: relative; } @media screen and (min-width: 783px) { .admin-bar.masthead-fixed .site-header { top:inherit; } }


1

Looking at the WP_Style class, we find the style_loader_tag filter, that might be useful. Try for example: add_filter( 'style_loader_tag', function( $link, $handle ) { if( 'google-fonts' === $handle ) { $link = str_replace( '/>', ' data-noprefix />', $link ); } return $link; }, 10, 2 );



Only top voted, non community-wiki answers of a minimum length are eligible