Add colorpicker to featured image

Okay. Got it working…. I used the simple version: add_filter( ‘admin_post_thumbnail_html’, ‘basic_add_opacity_to_feature_thumb_box’); //same as before function basic_add_opacity_to_feature_thumb_box( $myhtml ) { $selected_option = get_post_meta( get_the_ID(), ‘basic_opacity’, true ); // get the current value for ( $i = 0; $i <= 1; $i = $i + 0.1 ) { //loop from 0 to 1 in 0.1 increments … Read more

How to configure wordpress to work with Vuejs with SSR and without hashbang

I think you should try Nuxt.js framework with Vue.js and WordPress as a server trough WP API. It works smoothly and have SSR solution in the box by default. In other way you need to configure your server to work properly with history mode. Take a look at configuration examples: https://router.vuejs.org/guide/essentials/history-mode.html And to official vue.js … Read more

Animations are not being triggered on Scroll

I think you have placed your CODE alright. Perhaps you need to clear browser cache to see the animation in action. In your site I can see it’s working. Note: Although your CODE will work, it’s better to use it in the following manner if you have WordPress 4.5 or above: add_action( ‘wp_enqueue_scripts’, ‘sk_enqueue_scripts’ ); … Read more

Minify HTML, CSS, JS with PHPWee?

There is little ‘bug’ in PHPWee. It should use <?php instead of <?: <? namespace PHPWee; require_once(“src/CssMin/CssMin.php”); require_once(“src/HtmlMin/HtmlMin.php”); require_once(“src/JsMin/JsMin.php”); // Open-source (BSD) PHP inline minifier functions for HTML, XHTML, HTML5, CSS 1-3 and Javascript. // BSD Licensed – https://github.com/searchturbine/phpwee-php-minifier/blob/master/LICENSE // // Usage // $output = \PHPWee\Minify::html($any_html); // $output = \PHPWee\Minify::css($any_css); // $output = \PHPWee\Minify::js($any_js);