was successfully added to your cart.

All posts by admin

Increase Max Upload File Size in WordPress

By | Our Blog | No Comments

Sometimes, you need to upload a large file to your site, and the default limit in WordPress isn’t enough. This isn’t directly a WordPress configuration, but is a limit set by your web hosting provider. You can see the current limit by going to Media → Add New in your WordPress dashboard.  In this article, we will show you how to increase the maximum file upload size in WordPress. Change the values to limits that best suit your needs.

1. Create or Edit an existing PHP.INI file
All you need to do is create a php.ini file and upload it into your /wp-admin folder. Then add the following code:

[code] memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
file_uploads = On
[/code]

This method is reported to work for many users.

2. Editing Your .htaccess file
Open or create the .htaccess file in the root folder and add the following code:

[code] php_value memory_limit 64M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_flag file_uploads 1
[/code]

If none of these options work, you can’t access the areas mentioned or you have troubles along the way, get in contact with hosting provider for a definitive answer that will work for your situation.

How to create phpinfo page

By | Our Blog | No Comments

PHP has many environmental variables that you are able to configure as needed. For example, you may need to update your php memory_limit to prevent certain scripts from running out of memory. In order to change these values, you must first be able to see what they are. You can get specific server configuration by making and running a phpinfo file from your server.

With a simple text editor (such as Notepad++), create a new phpinfo.php file containing only this following code:

[code] <? phpinfo(); ?>
[/code]

Upload this page to your httpdocs (public_html) folder on your server, and call it with your Internet browser http://YourDomain.com/phpinfo.php.
Now a page should be displayed telling you the PHP version installed on your server, server information and environment (if compiled as a module), the PHP environment, paths, master and local values of configuration options, HTTP headers, and the PHP License etc.

IMPORTANT! For security reasons, you should not leave this file in place after you have retrieved the information, nor should have it accessible (linked) to the general public.

How to change the default settings of WordPress Gallery

By | Our Blog | No Comments

I will show how to change the default settings of the WP Gallery. I mean, the number of columns, size and the link. WordPress Galleries usually default to using the thumbnail size of 150 x 150 (px) and 3 columns across.

1) Open up the functions.php file in  in the wp-content/themes/your-theme-directory

2) Copy and paste the code below to your theme functions.php

[code] //Galerie Setting
function my_gallery_default_type_set_link( $settings ) {
$settings['galleryDefaults']['link'] = 'file';
$settings['galleryDefaults']['size'] = 'medium';
$settings['galleryDefaults']['columns'] = '2';
return $settings;
}
add_filter( 'media_view_settings', 'my_gallery_default_type_set_link');
[/code]

This function changes the default attributes for the gallery to be columns=”2″ and size=”medium”.

How to remove all Akismet’s CommentMeta data

By | Our Blog | No Comments

The table that really growing is “wp_ commentmeta”. It contains mostly “akismet_result”, “akismet_history” & “akismet_as_submitted” meta key. These entries are created by akismet plugins in relation to spam comments. The entries will not get deleted even after all spam comments deleted permanently. There is a annoying bug in this plugin.

You can remove all Akismet’s CommentMeta data. However, remember to backup your database prior to removing these entries, so you can restore it if anything goes wrong.

Step1: Open PhpMyAdmin.

Step2: Checkout all Akismet data using select query
[code] SELECT * FROM wp_commentmeta WHERE meta_key
LIKE "%akismet%"
[/code]

Step3: If you are fine with this data execute delete query.
[code] DELETE FROM wp_commentmeta WHERE meta_key
LIKE "%akismet%"
[/code]

How to Automatically Empty Akismet Spam Queue Daily

By | Our Blog | No Comments

Akismet wipes the comment spam queue every 15 days. This snippet changes the interval to daily, forcing Akismet to delete all spam messages every 2 days rather than every 15 days.

Go to theme's folder and find the file functions.php - that's where you put all your custom functions.

[code] add_filter( 'akismet_delete_comment_interval', 'custom_set_delete_interval' );

function custom_set_delete_interval() {
return 2;
}
[/code] Save the functions.php file and then check that it works - go to http://your-site.com/wp-admin/admin.php?page=akismet-key-config and scroll down to where you can set options. You'll see it say "Note: Spam in the spam folder older than 2 days is deleted automatically."

akismet

Create .htaccess file in WordPress

By | Our Blog | No Comments

.htaccess file is an important system file of WordPress platform. You can do many things using .htaccess file. You can use .htaccess to redirect users, enable or disable safety features, change the behavior of handling search engine bots, and add write/re-write rules for URL redirections. WordPress .htaccess file can be edited by using plugins or by directly access to your server File Manager.

The dot before the file name indicates that it is a hidden file. When you are accessing your web server through FTP, you will not be able to see .htaccess file unless your FTP client is forced to show hidden files. Simply, use any free FTP client like FileZilla and login to your hosting FTP account and browse to root of your installation. FileZilla -> Server -> Force showing hidden files.

Sometimes even when you have forced your FTP client to show hidden files, it will still not show you .htaccess file. The most common reason for this is that your WordPress site has not generated a .htaccess file yet. WordPress generates .htaccess file for the first time when you set up permalinks on Settings » Permalinks screen. All you need to do is to click on Save Changes button on the permalinks screen and WordPress will generate a .htaccess file in your site’s root directory.

permalinksettings1

[code] # BEGIN WordPress
RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L] # END WordPress
[/code]

Learn How to Create New WordPress Menu

By | Documentation | No Comments

To get to the Menus area of the backend of WordPress, you need to navigate to Admin -> Appearance -> Menus. This will take you to the primary menu management area where you can create a new menu and manage existing menus.

Menus in WordPress may contain links to pages, categories, custom links or other content types. You can also specify a different navigation label for a menu item as well as assign other attributes. There’s no limit on how many menus you can create, so if your theme includes more than one menu location, you can choose which custom menu to associate with each location.

create-menu

Menu-Editor

How to Create a Custom Menu in WordPress:

1. Click on the Menus link in the Appearance menu. You’ll now see the Menus editor page.

2. Enter your menu name, and click Create menu (Example here: Menu 1)

3. Now you’re ready to add menu items (Pages, Links and Categories) from the boxes on the left.  Tick for example the checkboxes in the Pages panel, next to each of the Pages that you would like to add and then click Add to Menu button.

4. If you’d like to change which menu options you see from this page, click to expand the Screen Options tab. Now you can add other menu items options such as posts, tags or formats, or show advanced menu properties like CSS classes.

5. Simply drag and drop a menu item to adjust its position in the menu.

6. When you have your menu items arranged in order, click Save Menu. You now have a new navigation menu that can be added to any menu location on your WordPress site.

Click to Get Full Access to our entire collection for only $69! Get Access Today