JavaScript added as link/stylesheet

wp_enqueue_script is for… scripts. You want wp_enqueue_style (and wp_register_style) for stylesheets. Also note that you can enqueue as many things as you’d like in a single function, no need to create a separate function for each. You can also pass all the same arguments to enqueue as you do to register, no need to register … Read more

wordpress in wamp lan doesn’t load css

finally i solved it…this was a very annoying problem! just enter your db and change in wp_option: – siteurl: from localhost server’s lan ip – home: from localhost server’s lan ip that’s it! 🙂

De-registering a CSS file leaves it in the queue

To properly and completely remove a style, you need to deregister(wp_deregister_style()) and dequeue(wp_dequeue_style()) it. Dequeueing will remove the style from the array in the $wp_styles variable, deregistering the style will remove the stylesheet from being printed add_action( ‘wp_enqueue_scripts’, ‘my_deregister_styles’, 100 ); function my_deregister_styles() { wp_dequeue_style( ‘genericons’ ); wp_deregister_style( ‘genericons’ ); }

Change logo on specific page id using css

Rather than using the tag in html, set the logo using the CSS background property. Use background-image:url(http://staging-domesticbliss.transitiongraphics.co.uk/wp-content/uploads/2017/03/db-homehelp-black-xl.png); instead.

Theme Check errors about missing CSS rules

The theme check plugin checks your theme also for any default class that is generated by WordPress itself. Take a look into codex for some more info. All you have to do, is to cover these classes in your CSS file, for example: .alignleft { text-align:left } This will remove the errors from theme checker … Read more

I want to change my post titles from h2 to H1

IT’s best to change the template used, rather than overwriting CSS. Make a Child Theme, then copy the single.php into your Child Theme folder. Modify the copied single.php to change the H1 tag to H2. Using a Child Theme ensures that your customizations aren’t overwritten with a theme update.

Can “ and “ tags be used in the HTML editor?

Mostly no, but you shouldn’t do that anyway. The exception, is if your user has the unfiltered_html capability, which is a dangerous power to have. Users that have this are admins on a single site install, or a super admin on a multisite install. But, there are major security downside to putting script and style … Read more