404 Error while accessing the font files

Please use short path file url rather then absolute path. So code is like: @font-face{ /* for IE */ font-family:FontFamily; src:url(Font.eot); } @font-face { /* for non-IE */ font-family:FontFamily; src:url(http://) format(“No-IE-404”),url(Font.ttf) format(“truetype”); } Make sure that readable web has released it’s first @font-face related software utility for creating natively compressed EOT files quickly and easily. … Read more

how to remove padding from left and right side? [closed]

Use the developer tools in your browser (i.e inspector in Chrome or firebug in Firefox) to see where the padding is coming from. Either the padding is applied to something other than the body, or the padding is applied to the body but is still overriding your CSS. For example: body.class { padding: 20px; } … Read more

Weekly background code not working

In this scenario, the tag that you want to call to execute your function is the wp_head(). Looking at the code you provides, you have the idea down, but I decided to rewrite it differently. In your child theme’s functions.php file, add the following: add_action( ‘wp_head’, ‘wpse_238911_weekly_background’ ); function wpse_238911_weekly_background() { $day = date( “l” … Read more

Add class or ID to any WordPress function

If you have only one template it’s fine to do something like: echo ‘<p class=”whatever”>’ . get_the_excerpt() . ‘</p>’; However, if you have multiple templates and want to control the classes centrally, you can make a filter on get_the_excerpt as follows (but yeah, that would be in functions.php): add_filter (‘get_the_excerpt’,’wpse240352_filter_excerpt’); function wpse240352_filter_excerpt ($post_excerpt) { $post_excerpt=”<p … Read more

php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)

bloginfo() does already an echo. It will be printed before everything else in your echo statement. Use get_bloginfo() instead. stylesheet_directory is one of these arguments where it is better just to use the function that is called by WordPress: get_stylesheet_directory_uri(). It is easier to understand, especially in this case where one could expect a path … Read more

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