Category: Code Snippets
-
Unlocking the Potential of Your Website: A Comprehensive Guide to Choosing the Best WordPress Hosting
[ad_1] Creating a website has never been easier, thanks to platforms like WordPress. However, one critical aspect of building a successful WordPress site is choosing the right hosting provider. In this article, we will explore the different types of WordPress hosting, key features to consider, and tips for selecting the best option for your needs.…
-
Valuable Excel Business Templates Collection
[vc_row height=”small”][vc_column width=”2/3″][us_hwrapper valign=”middle” wrap=”1″][us_post_taxonomy style=”badge” css=”%7B%22default%22%3A%7B%22font-weight%22%3A%22700%22%2C%22text-transform%22%3A%22uppercase%22%2C%22font-size%22%3A%2210px%22%7D%7D”][us_post_date text_before=”Published on” css=”%7B%22default%22%3A%7B%22font-size%22%3A%220.9rem%22%7D%7D”][us_post_views icon=”fas|eye” result_thousand_short=”1″ css=”%7B%22default%22%3A%7B%22font-size%22%3A%220.9rem%22%7D%7D”][us_post_comments layout=”amount” number=”1″ icon=”fas|comments” css=”%7B%22default%22%3A%7B%22font-size%22%3A%220.9rem%22%7D%7D”][/us_hwrapper][us_post_image media_preview=”1″ css=”%7B%22default%22%3A%7B%22margin-bottom%22%3A%221.5rem%22%7D%7D”][us_separator][vc_row_inner][vc_column_inner][vc_column_text] A collection of useful Free Downloadable Excel Templates [/vc_column_text][/vc_column_inner][/vc_row_inner][wpfd_category_shortcode wpfd_category_random=”0.09347001652449038″ wpfd_selected_category_id=”3306″ wpfd_category_title=”Excel Templates”] Category Title: Excel Templates [/wpfd_category_shortcode][us_sharing providers=”email,facebook,twitter,pinterest,vk,whatsapp,reddit,telegram” type=”solid” text_selection=”1″ text_selection_post=”1″ css=”%7B%22default%22%3A%5B%5D%7D”][us_separator size=”custom” height=”0.8rem”][us_post_taxonomy color_link=”” text_before=”Tags:” css=”%7B%22default%22%3A%7B%22font-size%22%3A%220.9rem%22%7D%7D”][us_separator][vc_column_text] Random Post Selection :: [/vc_column_text][us_separator size=”small”][us_grid orderby=”rand” items_quantity=”3″…
-

Bypass Cloudflare 403 Web Scrapping Error
Getting 403 error scrapping sites behind CloudFlare, here is a simple Curl method that worksYou need Free RapidApi.com Subscription and A Free Scrapeninja API access
-

Protect wp-config.php with .htaccess – WordPress Code Snippets
[ad_1] To tighten security of your WordPress blog/website, you should prevent direct access to wp-config.php file. You can prevent this with htaccess. Adding this simple code to your .htaccess file will prevent unauthorized access to your wp-config.php file. # Disable direct access to wp-config.php <files wp-config.php> order allow,deny deny from all </files> [ad_2]
-

Open All External Links In New Window
[ad_1] Almost all web sites provide links to other sites, but it’s generally good practice to open these “external” links in a new window or tab. This makes it clear that the content is not part of your site, and also leaves your site open in the browser so the user can easily return. To…
-

Remove Width & Height Attributes From Uploaded Images
[ad_1] If you upload images via the WordPress media uploader and insert it into your post, it will automatically include the image width and height attribute in the html <img> tag. These are normally desirable, as it assists the browser in making the appropriate room for the image during layout. But for some reason if…
-

Force Use of www in All URLs And Redirect Traffic With .htaccess
[ad_1] A website can be accessed with http://www.domain.com and http://domain.com. If you visit any of these URLs, you will be sent to the same page but they will have different URLs. The main problem is that Google and other search engines consider it as duplicate content and therefore penalize this domain in the search engine…
-

Speed Up WordPress With Browser Caching
[ad_1] Browser caching can help to reduce server load by reducing the number of requests per page. By setting the correct file headers on static files that don’t change (like Images, CSS, JavaScript etc) browsers will then cache these files on the user’s computer. This technique allows the browser to check to see if files…
-

Remove WordPress Generator Meta Tag Completely
[ad_1] By default WordPress adds generator meta tag in website head section. The WordPress generator meta tag displays your website’s WordPress version for anyone to see. It can be considered a security risk to make your WordPress version visible and public. Because you are providing the hacker with the useful information by telling them which…
-

Limit Search Results For Specific Post Types
[ad_1] If you’re using a lot of custom post types then there are very good chance that your search results are displaying some content that you don’t want to display. Even sometimes you don’t want to include pages in search results too. So here is a simple solution to your problem. Adding this WordPress code…