You can add this to your function to enable your short code in widget without pain.
add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode');
Technology, Photographer, Linux, tutorial, tips, idea to share around
You can add this to your function to enable your short code in widget without pain.
add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode');
I found out that using this way to white fade out the text.
<div style="font-size: 6pt; overflow: hidden; text-decoration: none; position: relative; white-space: nowrap; -webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 99%);"> Fade away my text</div>
I’m going to Setup Temporary WordPress Staging Site using same MySQL database. It is very useful for you to develop themes or plugin without affect to your current running sites, and you need to use real data to test it out.
Copy all your current contents from
/var/www/juzhax.com
to
/var/www/dev.juzhax.com
Set a domain and Point your Apache or Nginx to
After that edit the file in wordpress
/var/www/dev.juzhax.com/wp-includeds/options.php
Inside the function get_option
Put this code, save it.
if ($option == "siteurl" || $option == "home") { return "http://dev.juzhax.com"; }
Remove the ver=date behind the JS and CSS in wordpress.
// Load in any own plugin function juz_remove_wp_ver_css_js( $src ) { if ( strpos( $src, 'ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; } add_filter( 'style_loader_src', 'juz_remove_wp_ver_css_js', 9999 ); add_filter( 'script_loader_src', 'juz_remove_wp_ver_css_js', 9999 );