How do I make my block-editor styles match my front-end styles?

Just use the add_editor_styles() function on the after_setup_theme() hook for your editor styles, and enqueue the same style sheet using wp_enqueue_style() on the wp_enqueue_scripts() hook. Optionally, you can also use wp_style_add_data() to inline the styles for better performance. There’s no need to manually add the .editor-styles-wrapper class before other selectors if you enqueue the style … Read more

how to change the colour of this background

It’s an inline style. Just change the preferred color from the following tag: <p class=”has-text-align-center has-black-color has-text-color has-background has-medium-font-size” style=”background-color:#(Preferred color)”>…</p>

Why is the image in div not displayed in full-size?

Just a guess, but img probably does not have a child element with the class size-full. The class is probably on the img itself. So it should probably be img.size-full without a space. Which would make this a CSS problem and not a WordPress problem.

Min height of page [closed]

You should set min-height to 900px instead of just 900. 900 might work in some browsers, but probably not in yours.

WooCommerce order note color [closed]

WooCommerce 2.5 is on its way. That introduces a filter for $note_classes which was missing in previous version. Once that ships, you can use following code which adds css classes to order note containers. Then you can use those classes to apply colors. You need to put this in your functions.php file. function woo_process_order_note_classes($note_classes, $note){ … Read more

How to use WordPress 3.8 back-end CSS in front-end?

I believe you’re asking how to include the admin styles in your front end theme? If so, you simply need to either enqueue ‘wp-admin’ on it’s own or list it as a dependency for your theme/plugin stylesheet. Here are examples of both methods: By itself: wp_enqueue_style( ‘wp-admin’ ); As a dependency: wp_enqueue_style( ‘my-theme-styles’, ‘path-to-my-css.css’, array( … Read more

Why doesn’t media(max-width) work on h2 title?

It’s being overwritten by the line at the top. You can see from the bit on the end of the filename that the your media query CSS is on line 133, but the CSS that’s overwriting it is on line 182. Because they use the same selector (.posts h2) the last one will take precedence, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)