Override WordPress Widget CSS Classes?

As alluded to by @Michael in the comments, the CSS classes for widgets depend on the sidebar they’re in more than the widget themselves. Those widget-specific CSS classes can be useful, but not when you’re trying to style every widget. It sounds like you may be able to use a normal element selector that targets … Read more

How to change the default class for the widget title?

h2 and h3 are not html classes, they are html tags. That said, does not exists a default html tag for the widgets, because the format used to output widgets title is set when the sidebar is registered (look at ‘before_title’ argument). So how title is shown is theme related and sidebar related, does not … Read more

Adding logo to WordPress header

It says right there in the code: <?php // to use a image just replace the bloginfo(‘name’) with your img src and remove the surrounding <p> ?> So just replace this line below that comment: <p id=”logo” class=”h1″ itemscope itemtype=”http://schema.org/Organization”><a href=”https://wordpress.stackexchange.com/questions/227227/<?php echo home_url(); ?>” rel=”nofollow”><?php bloginfo(”); ?></a></p> with this: <p id=”logo” class=”h1″ itemscope itemtype=”http://schema.org/Organization”><a href=”https://wordpress.stackexchange.com/questions/227227/<?php … Read more

How to properly Remove certain CSS / JS files from template

You can use this function that removes woocommerce styles/scripts if it’s your custom template, remember to change YOUR_TEMPLATE_FILE.php to match the specified template you want to remove the woocommerce css/js from it. add_action( ‘wp_enqueue_scripts’, ‘woo_cleaner’, 99 ); function woo_cleaner() { remove_action( ‘wp_head’, array( $GLOBALS[‘woocommerce’], ‘generator’ ) ); //dequeue scripts and styles if template matches if … Read more

proper way to add css using functions.php?

Your add_action() is incorrect: add_action(‘wp_enqueue_scripts’, ‘wp_enqueue_style’); The 2nd argument is supposed to be the function that you enqueue your stylesheet in. In you case that’s fearnothing_script_enqueue(): add_action( ‘wp_enqueue_scripts’, ‘fearnothing_script_enqueue’ );