How to change the order of the comment_form fields with css?

You could use flexbox instead of table if wanting to do this with css. Flexbox lets you order elements easily: #commentform { display: flex; flex-flow: column; } .comment-form-comment { order: 1; } .comment-form-url { order: 2; } .comment-form-email{ order: 3; } .comment-form-author{ order: 4; } .form-submit{ order: 5; } Here’s an example: http://codepen.io/candid/pen/NxKJyW/

How to solve ‘Eliminate render-blocking JavaScript and CSS in above-the-fold’ content for multiple files?

put this code at the end of functions.php add_action(‘customize_register’, ‘customizer’); function defer_parsing_of_js ( $url ) { if ( FALSE === strpos( $url, ‘.js’ ) ) return $url; if ( strpos( $url, ‘jquery.js’ ) ) return $url; return “$url’ defer “; } add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );

Check and dequeue if multiple stylesheets exists using wp_style_is?

I have not tested this, but I imagine it is because you are passing an array to the $handle variable in your wp_style_is() function and not a string. Maybe try looping through the array so you pass it a single string to check against each time. Something Like this… add_action(‘wp_enqueue_scripts’, ‘dequeue_by_handles’, 999); function dequeue_by_handles() { … Read more

How to dequeue a stylesheet by src, not handle?

I think you are talking about a rare scenario. “font-awsome” is the expected name that all plugins and themes should be using as handle. If the developer has not changed the source code of font awsome CSS file, there is no reason to change the name of the handle. Anyway, you can check the global … Read more

@font-face doesn’t work

This article has some very helpful information regarding @font-face, and compatibility issues … just in case. Here are some potential improvements in your @font-face section: One of your src entries lists “local”. Try removing that. Try using explicit addressing for your files. Make sure you can actually open your font files, or at least do … Read more

Adding style sheet to specific page

Utilize the wordpress conditional tags to selectively enqueue / load your stylesheets. This is best practice so you can call any dependancies as well. I’ve provided an example of this in practice. Often we only want to include styles for the front page and then style accordingly to your sub page: <?php // Is this … Read more

how to make stylesheet appear in theme editor?

I’d say it’s impossible… For one, there’s no hook inside the file /wp-admin/theme-editor.php. And last but not least, if you try one of this, it dumps an error: /wp-admin/theme-editor.php?file=css%2Fstyle.css&theme=twentyeleven /wp-admin/theme-editor.php?file=css/style.css&theme=twentyeleven Case you find a workaround, this code injects a link to the desired file: /** * Adjust the if(‘Twenty Eleven’ == sel) to your theme … Read more

How to combine multiple CSS files and concatenate JavaScripts if WordPress recommends enqueuing them?

WordPress doesn’t really offer this functionality. You basically grab the array of enqueued scripts + styles and minify & concatenating them before they are output (using 3rd party script), of course you would want to cache this as well. This is quite complicated so I suggest instead: There are several plugins on wordpress.org that do … Read more

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