Author: WPITECH

Shortcodes is a great way to extend the core functionalities of WordPress core. Nowadays all the best WordPress plugins using shortcodes to integrate their features and options within the pages and posts of sites. In this tutorial on WordPress do_shortcode(), I will tell you several ways to implement do_shortcode() function blog_do_shortcode() { return ‘This is a demo do_shortcode message’; } add_shortcode(‘do_shortcode’, ‘blog_do_shortcode’); In this code snippet, blog_do_shortcode is the name of the custom function that implements do_shortcode() functionality into your website. The return statement contains the actual message that needs to be inserted later on. Finally, in the add_shortcode(), you…

Read More

If you are looking to add trailing zeros to your WooCommerce prices then there is a plugin for this, but I have created a simple code snippet that shows trailing zeros on prices in WooCommerce. All you have to do is just to add this code in your theme’s functions.php file. add_filter( ‘woocommerce_price_try_zeros’, ‘wc_hide_trailing_zero’, 10, 1 ); function wc_hide_trailing_zero( $try ) { // set to false to show trailing zero return false; }

Read More

Internet marketing sphere has been under a phase of unswerving progression over the past couple of years. Entrepreneurs and marketers have been trying to keep up with the new devised digital marketing techniques and reformations. However, keeping up with the technological elevations and the shift in the search engine optimization techniques is not that easy of a job. Many new emerging businesses consult with a website design company for getting a website developed for their brand, hoping that this would be the only thing that they will need for marketing their business over the internet successfully. What they do not…

Read More

There exists a gap between living and thriving, and also as a company owner, you are probably comfortable with it. However, are you satisfied with the function of digital marketing as it pertains to a business enterprise? If a business is Residing, it Is doing Okay. It’s breaking, and the master is relieved. However, if a business is thriving, it’s growing. Its revenue is increasing by leaps and bounds. Business employees are happy, and also, the boss excited. It seems right to be in charge of a growing business. The issue is though: what really helps a business not just…

Read More

Nowadays developer needs the direct URL of featured image and it is mostly possible when the featured image is used as a header or the post background image. Place the following code snippet in the files including single.php, post.php, and template.php to get the URL: <?php $blog_fetrdimg = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> <div class=”blog-featured-image” <?php if( $blog_fetrdimg ) : ?> style=”blog-featured-background-image: url(<?php echo $blog_fetrdimg; ?>);” <?php endif; ?> > </div> Use the following CSS snippet to style the featured image: . blog-featured-image { background-position: 50% 50%; background-repeat: no-repeat; background-size: cover; width: 100%; } Get Single Post Thumbnail For enabling the…

Read More

Influencer marketing is a hot topic for all of us nowadays. Big companies contact celebrities to help them promote their services and products. However, what about the business proprietors that don’t have a huge budget to start an influencer advertising campaign? Or individuals who cannot offer a significant amount to celebrities. In this article, we will share a kick-ass influencer marketing plan without paying big bucks. For small companies, this is one of the strategies they can use within minimal budget. What small business owners need to know about influencer marketing? For example, if you want to advertise your product,…

Read More

Starting an online side business is a good thing as it comes with many benefits. To start with, you get to be your own boss meaning that you won’t have to worry about working under someone with strict rules. In addition to this, you can even make some extra money along with your full-time job. An online side business can help you achieve the financial freedom everyone desires for, but you must choose from different website ideas to set up an online business. Best Website Ideas That Can Help Build a Business Start A Blog Choose the Right Niche Sell…

Read More

WordPress Gutenberg editor supports customize block templates that help WordPress user to add custom block to their CMS. Register Gutenberg Blocks This method involves custom block templates that is used to build pre-populated blocks. Add the following code to functions.php file add_action( ‘init’, function() { $args = array( ‘public’ => true, ‘label’ => ‘News’, ‘show_in_rest’ => true, ‘template_lock’ => ‘all’, ‘template’ => array( array( ‘core/paragraph’, array( ‘placeholder’ => ‘Breaking News’, ) ), array( ‘core/image’, array( ‘align’ => ‘right’, ) ), ), ); register_post_type( ‘news’, $args ); } ) This is how the custom template for Gutenberg block appear. In this…

Read More

Digital marketing is developing at such a quick pace, that it might all appear to be confusing here and there. Yet, here’s the lowdown on everything around digital marketing that is essential to know at this moment. The tech giant purportedly has a 20 percent expansion year after year, with at least 85% of that income produced by marketing. The idea of advertising has been around for a long time. It has encountered various massive changes over time, with a lot of new digital marketing patterns showing up. Highly dependent on mechanical development, digital marketing is changing and developing each…

Read More