Tag Archives: Plugins

Replacing Media File Uploads In WordPress

Have you ever wanted to replace an upload on your WordPress media library? By default, it can be done only by uploading a new file, replacing it in your content, and then deleting the old upload.

This technique is both long and causes clatter in your media library as well as dead links on the internet, The reason is that newly uploaded file gets a new permalink.

There is one different way to replace any image – On media library, click “edit” view, and you can replace your file in one of two ways:

Simple Replace

It just replaces your file. The option requires you to upload a new file of the same type as the one you are replacing. The name of the attachment remains the same no matter what filename you upload.

Replace the file and update all links

The option replaces the old file, uses the new file name, and updates all links i.e. all links pointing to the old file are updated to point to the new file.

How To Replace Media Files?

  1. Install and activate the Enable Media Replace plugin
  2. Next, visit Media -> Library in your WordPress admin area
  3. Locate the file that you want to replace
  4. Take your mouse near the file name
  5. Click the link labeled as ‘Replace Media’
  6. Click the ‘Choose File’ button
  7. Select from the two options:
    • Just replace the file
    • Replace the file, and update all links
  8. Press the ‘Upload’ button

The plugin also provides you a shortcode that picks up the file modification date to display it in your posts and pages.

How To Fix Restricted Upload Error In WordPress?

Sometimes an error is experienced when you try uploading a new file in your WordPress media library. The error message is – “Sorry, this file type is not permitted for security reasons.”

The reason behind this restriction is to prevent the accidental or purposeful upload of maliciously executable files as that could damage your website.

However, if you are certain about the filetype you are trying to upload then you can fix this issue yourself.

Add this code in the wp-config.php file (located in the WordPress root directory):


Alternatively, you may use a plugin called Remove Unrestricted Uploads. Simply install-activate it to enable unfiltered uploads.

However, the given plugin has certain limitations and does not always work. In-case, if it doesn’t work for your specific file-type then try another plugin called Enhanced Media Library.

Install-activate it and then visit Settings -> MIME Types -> Media page.

See whether your desired file-type is listed or not. If it is not listed, click the ‘Add New MIME Type’ button and type the extension details.

In-case, if you don’t know the name and the label of your file-type extension, you can easily find it from here.

Next, tick the ‘Allow Upload’ box for the new MIME type you have added and save your changes.

How To Protect Media Uploads In WordPress?

Protecting media uploads and other files becomes important when you start selling digital content on your WordPress Ecommerce website. All media files on your WordPress site including the e-commerce uploads are located in uploads directory present inside wp-content directory which is located in your website’s root directory i.e. the main directory of your WordPress site installation.

You can protect this directory by installing-activating a plugin called Protect Uploads. Once the plugin is activated, simply navigate to your dashboard’s Media -> Protect Uploads page to see if the plugin is protecting your directory.

How It Works?

Anybody who wants to access your media files could list it by going to your-domain/wp-content/uploads from his web-browser. This plugin will hide the content by adding an index.php file on the root of your uploads directory or by setting a .htaccess which will return a 403 forbidden access error.

Depending on your server configuration, the .htaccess option could be disabled from the plugin settings page.

Broadcast Your Own Audible Programs With Managed WordPress

You can start podcasting from your home using your Managed WordPress site. Podcasts are pre-recorded audio episodes that may contain speeches, songs, tutorials, stories, books, or anything audible. These programs can be published or scheduled on a specific day and time or can be played on-demand from your WordPress site.

You can easily start your own podcasting website with Managed WordPress and run audio shows from your home using your smartphone or a podcasting microphone. Making your own website for building and managing a schedule for your online audio episodes is easier than you think. You can set up the website yourself, manage podcasts, host episodes of your audio files, and enable your users to easily subscribe to them from your website or via iTunes or Google Podcasts.

Step-1 Make Your Website

The first step is to register your domain name, then subscribe to Managed WordPress and the automated tour will help you to connect your domain to your website and your website will be up online in minutes.

Step-2 Record Your Episodes

To record your episodes, you may use your smartphone for recording plain audio files and if you want some mixing with background music, audio effects, etc then make use of Audacity, a free GPL licensed software that allows you to record audio with multiple options for cut, copy, splice, and mixing sounds together. You can also add various effects and change the speed or pitch of your recording.

Once your audio files are ready, you can publish them up on your WordPress website. There are many free plugins that offer you easy hosting and publishing of podcasts from within your WordPress website. One such plugin is PowerPress Podcasting, simply install-activate it, and then navigate to the PowerPress menu visible on your WordPress admin panel. This will take you to the plugin’s admin page.

Follow the connection steps mentioned on the page and fill out the necessary information. You may also connect your podcast to Google Podcasts or iTunes, the option is present on the settings page. It provides you specific fields for podcast details such as intro, category, and artwork, etc. These details are used in your podcast’s RSS feed, and the iTunes and Google Podcasts will also use the same information for placing your podcast in their directory. The Podcast RSS URL of your website which you can submit to Google Podcasts and iTunes is yourexample.com/feed/podcast (make sure to replace example.com with your own domain name).

Step-3 Upload Your Audio Files

Files can be uploaded before or at the time of publishing podcasts on your WordPress website. To upload files you simply need to visit your admin area dashboard Media -> Add New page and upload your audio files individually or in bulk. You will need the URL of each file while publishing your new podcast, the URL can be obtained by clicking the uploaded media file and copying the link from the right section showing ‘Copy Link’ field. The same can be done from Add New post page while publishing a new podcast, you simply need to click Add File button and do the same from the Media Library Thickbox.

Step-4 Publish Your Podcasts

Visit your website’s admin area dashboard and navigate to Posts -> Add New (same as you do while publishing any new blog post) just make sure to create a separate category for your podcasts to make navigation easier for yourself and your visitors.

Title your blog post, write a description of your podcast episode, scroll down and you will notice the ‘Podcast Episode’ meta box. Here, you will need to paste your uploaded media file URL and then click the verify button.

Use the shortcode [powerpress] to place the player exactly where you want it into your post content. The plugin also provides you a playlist player shortcode [powerpress_playlist] that includes a playlist of your latest podcast episodes. Finally, publish your post and your podcast episode will go live. Follow the same steps for publishing new audio episodes.

How To Automate Image Alt Tags In WordPress?

Image alt tags are the text that sometimes appears in place of images. It is used to describe your image and make them search-friendly. When you use alt tags on your images, they become search-friendly and are more likely to appear on search results pages to visitors who are searching for them.

Default WordPress functionality allows you to alt tag images after you upload them on your website, all images show a field of title and alternative text where you can tag your images simply by describing them in brief.

There are also some free plugins that allow you to automatically alt tag your images. Auto image alt text (Alt tag, Alt attribute) optimizer for Google images is one such plugin which upon activation automatically starts adding alt text to your images uploaded on posts, pages, and also on products created on a WordPress Ecommerce installation.

The plugin is compatible with Pinterest, WooCommerce, TinyMCE, Page Builder by SiteOrigin, Elementor Page Builder, Gutenberg, Yoast, and provides you manual customization of alt tags other than those used by Yoast or page titles.

More than twenty percent of search queries are made on Google Images so if you are running a photo blog or share more images on your posts then using alt image tags is a critical step that should not be overlooked.

Easily Bring Your Wholesale Business Online In COVID-19 Crisis

The corona crisis has forced people to shop from home. The demand for the essentials is high as it was ever and the big eCommerce companies are failing to satisfy this demand on time. The reason is that the sellers registered on such eCommerce platforms are cleaning out their shelves in their local area and the delivery slots are going down because of the shortage of delivery boys and active courier services.

So this is the niche that wholesalers can fill by bringing their businesses online to serve both retail businesses and regular customers from their own mobile-optimized eCommerce website.

How To Bring Your Wholesale Business Online?

Bringing your wholesale business online is an easy task which you can do yourself simply by registering your domain name and subscribing to WordPress Ecommerce. The automated process of WordPress Ecommerce takes you to a step-by-step tour to help you set up your eCommerce website in minutes. The website can be used for both wholesale and retail purposes.

How To Serve Wholesale & Regular Customers Both From The Same Website?

Taking your wholesale business online has the same steps as bringing any retail business online and once your website is online you can make use of a plugin called WooCommerce Wholesale Prices to supply specific users with wholesale pricing for their product range. This is very simple, you can control pricing from the product editing page and manage wholesale users from the ‘Users’ section on your admin area dashboard.

Simply install and activate the plugin then navigate to the product you wish to enter wholesale pricing for. If the product you have selected is a simple product, you will find a wholesale price box on its general tab whereas if it is a variable product then each variation will have its own wholesale pricing.

Apart from this, you can change the user role to ‘Wholesale Customer’ for customers you wish to grant wholesale privilege.

Another plugin called Wholesale For WooCommerce Lite provides you the same set of options with the ability to sign-up your customers using a wholesale registration form and then you can assign them “Wholesaler” user role. With this plugin, you can also display the amount they’re saving on your products.

WooCommerce Team also provides you a wholesale addon called Wholesale For WooCommerce but that is a premium plugin.

Rename Or Replace Images Without Breaking Links On Your WordPress Site

When you remove and upload any images being used in several spots on your website, WordPress automatically generates a new ID for them and bounds you select the new one all around.

Other times when you want to rename an image file also leaves you with broken links until you update all your posts and pages using that specific image.

This post provides you an easy solution that lets you replace or rename any image file without breaking any links on your and other websites.

Continue reading Rename Or Replace Images Without Breaking Links On Your WordPress Site

How To Extend Google AMP Design Options On Your WordPress Website?

The official AMP plugin for WordPress enables AMP support but has very limited customization features. Currently, all you can do is change the background color for header, link and enable it for custom post types on your website.

There are some more AMP plugins and add-ons which you can install on your WordPress website in addition to the main AMP plugin to activate more customization options.

Continue reading How To Extend Google AMP Design Options On Your WordPress Website?

What Is Google AMP? How To Implement It On Your WordPress Website?

The AMP Project is a collaborative effort supported by companies like Google and Twitter to make the web faster. It enables the creation of fast websites and ads that are consistently fast and high-performing across mobile devices and distribution platforms.

For instance – It enables Google AMP Cache to host the content of AMP enabled websites, these cached web pages open instantly when a user taps them from search results.

As for now reading on the web is sometimes slow for some users, this also depends on their geographic location and the speed of internet connection. Hence sometimes content rich pages take several seconds to load despite all efforts taken by webmasters to speed up their websites.

Continue reading What Is Google AMP? How To Implement It On Your WordPress Website?

Enable Mod_Expires On Your Website To Cache Your Files For Speed

Mod_Expires is a module of Apache Web server which is installed by default on all of SANGKRIT.net Linux based hosting options and supports all mod_expires functionality.

It works by manipulating the expire headers returned from the hosting server, letting you control how long a client’s Web browser cache the resources. You want to tune the duration of your caching to optimize performance while still considering how often you update the resource.

When the expires header is already part of the response generated by the server, this module does not change or add an Expires or Cache-Control header—for example, when generated by a CGI script or proxied from an origin server.

Continue reading Enable Mod_Expires On Your Website To Cache Your Files For Speed

Keep Track Of Vulnerable Updates On Your WordPress Website

It is important to keep themes and plugins updated on your WordPress website as hackers are always looking up for security issues to take advantage of it and plugin developers are not sitting bored to push up some unnecessary update, most of the updates are made to fix security issues. That is why you notice some minor WordPress versions with security release title.

Continue reading Keep Track Of Vulnerable Updates On Your WordPress Website

What Is Increased Time To 1st Byte? How It Affects Your Website’s Speed?

An increased time to 1st byte means your website is running too many SQL queries or non-optimized SQL queries which can also include server-side calls to third-party APIs.

If you’re a WordPress user, there are a number of plugins you can check out to decrease the number of database queries and speed up your website. And if you are not using WordPress then you need to check and optimize your database then use some website cache functionality. For this, you may buy expert’s support via system@sangkrit.net on per hour per terminal basis. Continue reading What Is Increased Time To 1st Byte? How It Affects Your Website’s Speed?

Playing Videos Using Popup Lightbox In Your WordPress Website

Earlier we have posted on inserting links to popup in WordPress, now same thing can be done for displaying videos in a lightbox overlay.

FA Video Popup makes use of the native WordPress Video Shortcode and MediaElements.js JavaScript library already present in WordPress since 3.6+ versions to let you add popup video links in post or anywhere on your website.

You can add links by placing shortcode and when the link is clicked, inserted video starts to play in a responsive lightbox overlay.

Continue reading Playing Videos Using Popup Lightbox In Your WordPress Website

How To Add Shipping Cost Per Item, Per Shipping Class Or Per Order In WooCommerce?

Flat Rate Shipping, a free shipping method in your WooCommerce website enabled you to define a standard rate per item, per shipping class or per order. It works with Product Shipping Classes with more options and flexibility.

Continue reading How To Add Shipping Cost Per Item, Per Shipping Class Or Per Order In WooCommerce?

Group Similar Ecommerce Products For Specific Shipping Methods In WooCommerce

Shipping classes in WooCommerce are used for grouping similar products and used by some shipping methods, such as Flat Rate Shipping etc to offer different rates to different product classes.

For instance – If you are using shipping classes, it becomes possible for you to create different flat rate costs for different product types such as bulky items and light items.

Continue reading Group Similar Ecommerce Products For Specific Shipping Methods In WooCommerce