Uncategorized

Disable Copy Text in Javascript & CSS

Javascript Code // (A) PREVENT CONTEXT MENU FROM OPENING document.addEventListener(“contextmenu”, (evt) => { evt.preventDefault(); }, false); // (B) PREVENT CLIPBOARD COPYING document.addEventListener(“copy”, (evt) => { // (B1) CHANGE THE COPIED TEXT IF YOU WANT evt.clipboardData.setData(“text/plain”, “Copying is not allowed on this webpage”); // (B2) PREVENT THE DEFAULT COPY ACTION evt.preventDefault(); }, false); CSS Code /* […]

How to Create Custom Shortcode for WordPress

This is how you create Shortcode in WordPress from the function.php // [bartag foo=”foo-value”] function bartag_func( $atts ) { $a = shortcode_atts( array( ‘foo’ => ‘something’, ‘bar’ => ‘something else’, ), $atts ); return “foo = {$a[‘foo’]}”; } add_shortcode( ‘bartag’, ‘bartag_func’ ); //Show the short code in the site [bartag foo=”bar” bar=”bing”]

How to connect Facebook page with Instagram ?

connect Facebook page with Instagram

connect Facebook page with Instagram To connect first go to your Facebook page. From the bottom right corner click on the Settings. Then go to Instagram option From Instagram select connect and click continue. Then login with your Instagram credential. You are done!