Tag Info

Hot answers tagged

2

Technically speaking all you need is the Theme Name in your stylesheet header. This will identify your theme. All the other info is need-to-know info and can be omitted. If your theme is a child theme, you will need to have Template as well as this will be the path to the parent theme.


1

You can use em sizing to make the dashicons scale relative to the font size of their containing element. This should do the trick: .dashicons:before { width: 1em; height: 1em; font-size: 1em; } Then if your <h1> element has a font-size of 48px, your dashicon will as well.


1

You can use wp_add_inline_style to attach some css to dashicon style. Using that function everytime you add dashicons css via wp_enqueue_script you can automatically append some css and so modify default styles. Something like: add_action('wp_enqueue_scripts', function() { wp_add_inline_style( 'dashicons', '.dashicons { ...


1

Use the function body_class() in your templates: <body <?php body_class(); ?>> This creates extra classes on the body element. Then filter its values in your functions.php: add_filter( 'body_class', function( Array $classes ) { if ( $GLOBALS[ 'isBoxedLayout' ] ) $classes[] = 'isBoxedLayout'; return $classes; }); Now you ...


1

The hooks are fine for change the login style. I think is better idea to identifier, why is the load so much slow. I have a lot of change for different installs and no problems with this hooks. But I see also often a lot of loads of unused source. I change the login style with this class: ...


1

In the latest version of WordPress, there a text color option in the default WYSIWYG, which is TinyMCE. Look for this option: Custom styling for tables is not supported by default in WordPress.



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