header_image() with CSS

No, in general, it’s not possible to use php in CSS. But you can set background image in php file. Like.. <div class=”headerimg” style=”background-image: url(<?php echo header_image(); ?>)”></div> Then in CSS file using class you can set all the other properties you need like height, width, background-position and so on.

I have problems with loading javascripts

You seem to be loading both file/folder names into the queue. get_template_directory_uri() . ‘http://fitclaw.com/wp-content/themes/Coming%20Soon/js/jquery.js should only be: get_template_directory_uri() . ‘/js/jquery.js’ And so-on and so-forth. because get_template_directory_uri returns, or should be returning this string for you: ‘http://fitclaw.com/wp-content/themes/Coming%20Soon/’ And you should always try to use those relative paths versus hard-coding them.

Shotcode argument issues

You need to pass $atts as parameter to the function. Also you don’t need to use extract() function and better you avoid this extract function as much as you can. So your whole code block will be- function some_function_bbb( $atts ) { $atts = shortcode_atts( array( ‘hexabexa’ => 0 ), $atts ); ob_start(); ?> <div … Read more

How to add_filter html template to middle of content

You should use add_filter() instead of apply_filters(). apply_filters() is used to apply the filter that’s been registered with add_filter(). Please check the following code for the solution – function bbtre_amazon_content_filter( $content ) { if ( ! is_single() ) { return $content; // Return early if not single post } // Paragraphs array without the closing … Read more

I can’t seem to install Font Awesome locally [closed]

Considering the folder structure “/public_html/wp-content/themes/TestTheme/static/fontawesome/” as folder location for Font Awesome use following instead 1 use following instead of the one you used for js include <script defer src=”https://wordpress.stackexchange.com/questions/299868/<?php echo get_template_directory_uri(); ?>/static/fontawesome/fontawesome-all.js”></script> 2 use following instead of the one you used for CSS include having fontawesome.min.css file in the CSS folder <link rel=”stylesheet” href=”https://wordpress.stackexchange.com/questions/299868/<?php echo … Read more