Need Help Figuring Out Admin Menu Hover Styling Class

#adminmenu li.menu-top:hover, #adminmenu li.opensub>a.menu-top, #adminmenu li>a.menu-top:focus { position: relative; background-color: #191e23; color: #00b9eb; } Make sure your plugin is using the structure: <li> <- position within admin menu is as a list item, using the <li> tag. <a>LINK</a> <- main link <ul> <- submenu container <li><a>submenu item here</a></li> </ul> </li> ofc dont put anything with … Read more

How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts

Or is it because im trying to add it to the css class .has-post-thumbnail which is applied to all posts? Yes, set_featured_background() gets first post from the loop and add .has-post-thumbnail to styles. All posts that have thumbnail (with class .has-post-thumbnail) will have the same background. Try setting the background in the template file responsible … Read more

Add Post Status to Body Class

You’ll have to use the body_class hook in the functions.php file of your theme in combination with get_post_status() function. Like the following: add_filter( ‘body_class’, ‘custom_class’ ); function custom_class( $classes ) { if ( get_post_status() == ‘rejected’ ) { $classes[] = ‘rejected’; } return $classes; }

Is it possible to edit the styling of the admin panel from within a custom theme?

Everything you’re able to do in a plugin you could do in a theme. It’s more like that separation is preferred, see article: https://managewp.com/blog/themes-design-plugins-functionality Below an example adding editor stylesheet: /** * Registers an editor stylesheet for the theme. */ add_editor_style( array( ‘assets/css/bootstrap.min.css’, ‘https://use.fontawesome.com/releases/v5.3.1/css/all.css’, ‘style.css’, )); Below an example to add scripts to the WP … Read more

Font Awesome wp_enqueue_style

Try this, function enqueue_load_fa() { wp_enqueue_style( ‘load-fa’, ‘https://use.fontawesome.com/releases/v5.5.0/css/all.css’ ); } add_action( ‘wp_enqueue_scripts’, ‘enqueue_load_fa’);

WooCommerce Country Drop Down colours CSS [closed]

It’s part of the “Select2” library, which is a jQuery replacement for select fields. You’ll find the stylesheet in /assets/css/select2.css in the WooCommerce plugin folder. The following are the property definitions you’ll find as the defaults for each of the items you mentioned. First, the selected value: .select2-container–default .select2-results__option[aria-selected=true],.select2-container–default .select2-results__option[data-selected=true] { background-color:#ddd } Second, the … Read more

Different css rules for TinyMCE and Gutenberg while using add_editor_style()

SHORT VERSION Using css it’s possible to use of the :not() selector to exclude Tinymce instances, e.g. body:not(.mce-content-body) {…} LONG VERSION Let’s assume we have declared theme support for editor styles and included an editor stylesheet somewhere in our theme (e.g functions.php) like this: add_theme_support( ‘editor-styles’ ); add_editor_style( ‘something/something/css/editor.css’ ); For the sake of this … Read more