Uncategorized

payment link working fine

 phonepe://pay?pa=6370223969@paytm&pn=Cashfree&t7r=571223&am=1&cu=INR&mode=00&purpose=00&mc=5732&tn=Cashfree%20Payment phonepe://pay?pa=paytmqr281005050101qe3kj5ddj64s@paytm&pn=Kahnu%20Charan%20Swain&tr=5712423&am=1&cu=INR&mode=00&purpose=00&mc=KbioZO35855032582717&tn=testpyment

make caption to link in wordpress

  jQuery(‘.dev3-service-thumb-list .gb-grid-column .gb-inside-container .wp-block-image ‘).find(‘figcaption’).each(function() { console.log($(this).attr(‘href’));    console.log(jQuery(this).val(‘figcaption’)); }); test2 jQuery(‘.dev3-service-thumb-list .gb-grid-column .gb-inside-container .wp-block-image ‘).find(‘a’).each(function() { var link = jQuery(this).attr(‘href’); jQuery(“figcaption”).append(“<a href=’#’ class=’remove-box’>Remove</a>”); }); jQuery(‘.dev3-service-thumb-list .gb-grid-column .gb-inside-container .wp-block-image’).on(‘click’, function() {var _link = jQuery(this).find(‘a’).attr(‘href’); console.log(_link);window.location.href = _link;})

change active tab color

 <script>         $(function () {             $(“li”).click(function (e) {                 e.preventDefault();                 $(“li”).removeClass(“active”);                 $(this).addClass(“active”);             });         });     </script>

button in a line

  <style> .relatedLink { display:inline-block; overflow: auto; white-space: nowrap; margin:0px auto; width: 100%; } .prevLink{ float:left; position: absolute; /* bottom:0; left:0; */ } .nextLink{ float:right; } </style> <div id=“relatedLink”> <button type=“submit” class=“prevLink” onClick=“return false;”>Save</button> <button type=“submit” class=“nextLink” onClick=“return false;”>Publish</button> </div>

wp custom block gutenberg 1

  const { registerBlockType } = wp.blocks; const { RichText, InspectorControls } = wp.blockEditor; const { ToggleControl, PanelBody, PanelRow, CheckboxControl, SelectControl, ColorPicker } = wp.components;   registerBlockType(‘awp/firstblock’, { title: ‘My first block’, category: ‘common’, icon: ‘smiley’, description: ‘Learning in progress’, keywords: [‘example’, ‘test’], attributes: { myRichHeading: { type: ‘string’, }, myRichText: { type: ‘string’, source: …

wp custom block gutenberg 1 Read More »

Wp Plugin basic settings

<?php /** * Plugin Name: Push Notifications Reloaded * Version: 1.0 * Requires at least: 4.9 * Requires PHP: 5.6 * Plugin URI: https://lunacreativity.in/ * Description: Send notifications on post/page publish,update etc * Author: Mr. Kanhu * Author URI: https://lunacreativity.in/ * Text Domain: push-notifications-reloaded * Domain Path: /languages */ //denied direct access of the file …

Wp Plugin basic settings Read More »