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>

add image upload section to wordpress theme customizer

  function dev365_default_banner( $wp_customize ){ $wp_customize->add_section( ‘generate_layout_banner’, array( ‘title’ => __( ‘Default Banner’, ‘generatepress’ ), ‘priority’ => 70, ‘panel’ => ‘generate_layout_panel’, ) ); $wp_customize->add_setting( ‘generate_default_banner’); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, ‘generate_default_banner’, array( ‘label’ => __( ‘Default Banner’, ‘generatepress’ ), ‘section’ => ‘generate_layout_banner’, ‘settings’ => ‘generate_default_banner’, ) ) ); } add_action( ‘customize_register’, ‘dev365_default_banner’); add_action(‘generate_after_navigation’, ‘testdata’); function testdata(){ …

add image upload section to wordpress theme customizer Read More »

wordpress image block settings

Remove top and bottom padding from images and cover block .pt-cv-content-item {padding-bottom: 0px;} /*covermedia top and bottom border padding*/.alignfull {margin: 0px 0;} /*coverphoto bottom border*/.pt-cv-ifield > *, .pt-cv-view .pt-cv-content-item > * {margin-bottom: 0px;} for a whole block all images  .kanha .wp-block-image img {    border:2px solid red; } remove border photo caption .wp-caption { border: …

wordpress image block settings Read More »

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 »