wordpress

How Create WordPress plugin

Create wordpress plugin kerala To create a plugin, all you need to do is create a folder and then create a single file with one line of content. Navigate to the WP-content/plugins folder, and create a new folder named cybernobplugin. Inside this new folder, create a file named cybernobplugin.php. Open the file in a text editor, and paste the following information in it: <?php /* Plugin Name: cbPlugin Creator Plugin URI: https://cybernob.com Description: a plugin to create and spread joy Version: 1.2 Author: Mr. Cybernob Author URI: https://cybernob.com License: GPL2 */ ?> Of all this information, only the plugin’s name is required. But if you intend to distribute your plugin, you should add as much data as...

Product categories don’t appear as option to build menu

woo commerce product categories woo commerce product categories Q . In Woo commerce, Under the "categories" option in appearance > menus, the only thing that appears under categories is "uncategorized". My product categories do exist in the system as do products. What do I need to fix or change to be able to add them to the menu structure? A. On the Menus page, click the Screen Options tab at top right. Then tick the boxes for products and product categories. That will make them available to be added to your menus. Do you nee our Help ? Contact us  Some of our Clients [supra_carousel carousel="clients" order_by="date" order="DESC"][latest_post display_comments="0" display_like="0" display_share="0" number_of_posts="15"]

Custom Icon on Google map

You can add your own icons for map placemarks if you’d like to use an image that’s not already available. For example, add an icon that represents your store to mark locations on the map. Add a custom icon Make sure you’re signed in. Then open an existing map in My Maps. In the legend on the left, click the layer where you want to add an icon. Make sure there’s at least one placemark on the layer. In the left panel, hover over the placemark and click the color icon . Click More icons. In the field below the icons, enter the web address for your icon. Click Add. Icon links, size, and color Your custom icon must be a live link on the web. You can upload a .jpg, .png, .bmp, or .gif file of any...

Show number of items in cart and total

For showing the number of products that added to cart  on any where (probably on top right corner ) please use the following code . <a class="cart-contents" href="<?php echo WC()->cart->get_cart_url(); ?>" title="<?php _e( 'View your shopping cart' ); ?>"><?php echo sprintf (_n( '%d item', '%d items', WC()->cart->cart_contents_count ), WC()->cart->cart_contents_count ); ?> - <?php echo WC()->cart->get_cart_total(); ?></a>

How to Create a Child Theme

  A child theme consists of at least one directory (the child theme directory) and two files (style.css and functions.php), which you will need to create: The child theme directory style.css functions.php The first step in creating a child theme is to create the child theme directory, which will be placed in wp-content/themes. It is recommended (though not required, especially if you're creating a theme for public use) that the name of your child theme directory is appended with '-child'. You will also want to make sure that there are no spaces in your child theme directory name, which may result in errors. In the screenshot above we have called our child theme 'twentyfifteen-child', indicating that the parent theme is the Twenty Fifteen theme. The next step is to create...