Category

Tutorial

How to Disable the WordPress Upgrade Message in the Dashboard

By | Tutorial | No Comments

There was a huge debate on Digging into WordPress blog whether developers should let their client’s upgrade or not. We believe to educate our clients and encourage them to be self-sufficient therefore we have created an infographic that shows you a step by step guide to upgrade WordPress. For Backing up WordPress, we recommend using BackupBuddy Plugin to our clients. But we do have clients that do not want to deal with maintenance updates, so they want us to take care of them therefore we also have that option available. For these clients, we hide the WordPress Upgrade Message.

All you have to do is simply open the theme’s functions.php file and add this:

add_action('admin_menu','wphidenag');
function wphidenag() {
  remove_action( 'admin_notices', 'update_nag', 3 );
}

 

There are plugins available that does this job, but we prefer to use the code above. Now remember, this only removes the upgrade bar that shows on all screens. It does not disable the Plugin updates or theme update notifications that shows up on the update page. For our clients that have us do the maintenance for them, we make sure that their site is up to date with all plugins, and the core.

Now Jeff Star posed an issue that he has to go in client’s dashboard to see whether plugins and such are activated. Well we already have a fix for that. We are using WP Status Dashboard (Our Tutorial on How to use WP Status Dashboard). This plugin/script lets us view all of our clients information on one screen, so we know exactly what needs to be upgraded on which client.

Remember, keeping your WordPress up to date is essential for site security. So if you do remove the nag, you need to stay on top of the upgrades for your clients.

wordpress remove header footer tag

WordPress custom functionremoving all links in the header and footer

By | Tutorial | No Comments

Does people know how to remove the WordPress JSON API links in the header tag?


<head>
...
<link rel='https://api.w.org/' href='http://example.com/wp-json/' />
<link rel="alternate" type="application/json+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=..." />
<link rel="alternate" type="text/xml+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=..." />
</head>

This custom function should help removing all links in the header and footer:
Read More

woocommerce-custom-product-search

Woocommerce custom product search box

By | Tutorial, woocommerce | No Comments

The product search box widget loads the search box using the template function:
get_product_search_form() It then looks for the product search form in the file ‘product-searchform.php’ or uses its default markup. You can override the default WooCommerce template product-searchform.php by customizing the markup.

For reference, the default markup is:
Read More

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

By | Tutorial | No Comments

Trying to install wordpress in debian server server. Where MySql already exist which is running fine in local server but when I am opening my wordpress blog showing this error:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

 

How do I fix problem ?

The most common reason for this in windows is that your php.ini doesn’t have the mysql line uncommented, so it’s not loading the mysql module (or the module is simply missing entirely):

[[code]]czoxNTI6XCI8c3BhbiBjbGFzcz1cInBsblwiPg0KZXh0ZW5zaW9uPC9zcGFuPjxzcGFuIGNsYXNzPVwicHVuXCI+PTwvc3Bhbj48c3BhbiBje1smKiZdfWxhc3M9XCJwbG5cIj5waHBfbXlzcWw8L3NwYW4+PHNwYW4gY2xhc3M9XCJwdW5cIj4uPC9zcGFuPjxzcGFuIGNsYXNzPVwicGxuXCI+ZGxsDQp7WyYqJl19PC9zcGFuPlwiO3tbJiomXX0=[[/code]]

Restart your webserver after you fix the php.ini file.

6 Things Google Analytics Can Tell You About Your WordPress Website

By | Tutorial | No Comments

Today, we’re going to be talking website metrics in detail. Not the most glamorous topic, I know, but certainly one of the most important for any aspiring webmaster. More specifically, I’m going to discuss six things WordPress users can learn about their website from Google Analytics.

1. Your Website’s Demographics

When it comes to producing great content, it pays to create an audience profile. For example, your audience might be (primarily):

  • 30-40 years old
  • Male
  • US based
  • Decent disposable income
  • Interest in fast cars

With this broad set of characteristics in mind, you can create a persona for your average reader — a persona you can keep in mind as you write.

Read More

Jquery close modal snippet stop video clip this modal

By | Tutorial | No Comments

I have modal popup show video clip, but when I close modal clip video not stop

I Found sneppet code to stop clip video

 

[[code]]czozMDk6XCINCiQoZG9jdW1lbnQpLnJlYWR5KGZ1bmN0aW9uKCl7DQogICAgJChcJy5tb2RhbFwnKS5lYWNoKGZ1bmN0aW9uKCl7DQogIHtbJiomXX0gICAgICAgICAgdmFyIHNyYyA9ICQodGhpcykuZmluZChcJ2lmcmFtZVwnKS5hdHRyKFwnc3JjXCcpOw0KDQogICAgICAgICQodGhpcykub3tbJiomXX1uKFwnY2xpY2tcJywgZnVuY3Rpb24oKXsNCg0KICAgICAgICAgICAgJCh0aGlzKS5maW5kKFwnaWZyYW1lXCcpLmF0dHIoXCdzcmNcJywgXCdcJyl7WyYqJl19Ow0KICAgICAgICAgICAgJCh0aGlzKS5maW5kKFwnaWZyYW1lXCcpLmF0dHIoXCdzcmNcJywgc3JjKTsNCg0KICAgICAgICB9KTsNCiAgICB7WyYqJl19fSk7DQp9KTsNCg0KXCI7e1smKiZdfQ==[[/code]]
 

It working well for me

nhantam
VLadingPage

Freelancer WordPress Developer Team

WordPress get current category id

By | Tutorial | One Comment

How do I get the current page id or cat_ID inside wordpress plugin page ?

[[code]]czoxNzU6XCINCmdsb2JhbCAkd3BfcXVlcnk7DQokcG9zdF9vYmogPSAkd3BfcXVlcnktJmd0O2dldF9xdWVyaWVkX29iamVjdCgpOw17WyYqJl19Cg0KJFBhZ2VfSUQgPSAkcG9zdF9vYmotJmd0O0lEOyAvLyBjdXJyZW50IHBhZ2UgaWQNCiRQYWdlX0lEID0gJHBvc3Rfb2JqLSZndHtbJiomXX07Y2F0X0lEOyAvLyBjdXJyZW50IGNhdCBpZA0KDQpcIjt7WyYqJl19[[/code]]
nhantam
Wordpress developer team

Optimize WordPress for Better Performance

By | Tutorial | No Comments

Optimize WordPress for Better Performance

WordPress is the worlds number one used CMS opensource website software. Powering over 60 million websites.

WordPress has a lot of great plugins available and its easy to create a full-featured website with a lot of neat functionality. These plugins however, can insert additional CSS and JavaScript files into your header which can hurt your sites performance ( and Page Speed and YSlow scores ). Here we have listed 5 important performance methods to optimize your WordPress website.

Read More

Contact form 7 and bootstrap

By | Tutorial | No Comments

Bootstrap for Contact Form 7 modifies all the output of the popular Contact Form 7 plugin to be fully compatible with the current version 3 of the popular CSS framework Bootstrap.

 

&lt;div class="row"&gt;
  &lt;div class="col-md-6"&gt;
    Fullname(*)&lt;br /&gt;
    [text* your-name]
  &lt;/div&gt;
  &lt;div class="col-md-6"&gt; 
    Phone(*)&lt;br /&gt; 
    [tel* tel-979] 
  &lt;/div&gt; 
&lt;/div&gt;&lt;!-- .row--&gt;

 

contact-form-7-bootstrap

 

nhantam
Freelancer WordPress developer

Some tricks for Image Optimization WordPress Website

By | Tutorial | No Comments

Some tricks for Image Optimization WordPress Website. One of the simplest and most effective ways to take your website from good to great is Image Optimization. Not only does it help with the appearance it also helps with SEO Rankings.
wordpress-optimization

With Google focusing heavily on Mobile responsive websites, images are no longer simply eye-candy, they are there to do a job within the context of extremely limited screen space. However as mobile download rates still lag behind those available on desktop, every pixel potentially counts. Users demand fast pages and research by HTTP Archive shows that images are the main cause of lagging websites and on average weigh in at 1.25MB per image. This will create a poor user experience for mobile users. The industry suggests that users expect a website to load within two seconds, however the average load time on mobile phones is around seven seconds. Google SEO requires that your page should load in one second or less.

Read More