WordPress – Increasing File Upload Size

Increasing File Upload Size in WordPress to 32 MB – 8/8/17

Increase the file size in GoDaddy cPanel.

Go to cPanel.
Go to Software.
Go to “Select PHP Version”.
Click on “Switch To PHP Options”.
Change “post_max_size” to 32M (Up to 1 GB)
Change “upload_max_filesize” to 32M (Up to 1 GB)

Both areas have to be changed to allow the full file size upload. Post_max_size will limit the upload file size.

Old Information – Increasing File Upload Size in WordPress to 1GB

Solution 1: using .htaccess way

You can get .htaccess file from root folder of your website. Mostly it’s hidden. So using FTP makes sense. Or you have to open your file manager with hidden files.
If there is no .htaccess file, create and upload/paste in root (before creating .htaccess file, make sure there is no .htaccess file). Paste the following code,

php_value upload_max_filesize 1024M
php_value post_max_size 1024M
php_value max_execution_time 1000
php_value max_input_time 1000

Solution 2: Theme’s Functions.php File

This is easy way. Open your theme’s functions.php file. You can find function.php file by following way,
wp-content –> themes –> select your current Theme -> functions.php file
And, just add following code at there,

@ini_set( ‘upload_max_size’ , ’1024M’ );
@ini_set( ‘post_max_size’, ’1024M’);
@ini_set( ‘max_execution_time’, ’1000′ );

****Solution 3: PHP.INI file method****
This is the one that worked on the GoDaddy hosting system

You can find your php.ini file in root folder. If you can’t find it there, just create a php.ini file and paste/upload in your root folder with following code. If already file is there, just add this code:

file_uploads = On
post_max_size = 1024M
upload_max_filesize = 1024M

If the php.ini file doesn’t work in the root directory, try placing it in the wp-admin directory.

In a multi-site system, go to “Network Admin”, “Settings”, “Network Settings” and scroll to bottom. Change the value in the “Max upload file size” field. (1024 x number of megabytes. 500 x 1024 = 512500. 1000 x 1024 = 1024000 or 1GB)

WordPress – Tempera Theme – Presentation Page Not Showing After Update

Change the template settings from static page to “Your latest posts”. Do a quick edit on the blog post page and change the page template to blog template. If there was an actual page named home, remove it from the menu and create a custom link for the menu pointing to the domain name and label it Home.

WordPress – Contributor Can’t Add Media or Featured Image to Posts or Events

WP Article: http://wordpress.stackexchange.com/questions/77613/allow-contributor-role-to-upload-images-and-not-edit-already-published-articles

Plugin: https://wordpress.org/plugins/user-role-editor/

Used the User Role Editor plugin and had to change one setting to allow this functionality. After installation, go to “Users”, “User Role Editor”, Select Contributor from the drop down and check the box “upload files”. Click update and it’s done. Can be managed as multi-site or individual sites.

if ( current_user_can(‘contributor’) && !current_user_can(‘upload_files’) )
add_action(‘admin_init’, ‘allow_contributor_uploads’);

function allow_contributor_uploads() {
$contributor = get_role(‘contributor’);
$contributor->add_cap(‘upload_files’);
}

WordPress – Audio Song Titles Not Showing in Player or Playlist

You can use iTunes to import songs by following these steps:

(1) Open iTunes
(2) Go to “File, Add File to Library”
(3) Select all the files for one CD
(4) Sort the music library by “Date Added”
(5) Right click on any of the new imported songs and click “Show in Windows Explorer”
(6) Upload these songs to WordPress and the meta data is intact.

Songs can be truncated for demo play by using the “Get info” section on each song. Go to the “Options” tab and select the start and stop times and click “Remember playback position”

Songs that were truncated by a different software tool may or may not contain the meta data contained in each song and therefore the song titles will not be included after uploading to WordPress.

WordPress – Audio Playlist Album Cover Truncated

This works for multi-site.

Edit file: wp-includes/js/mediaelement/wp-mediaelement.css

Use F3 search function in text editor mode and find: wp-playlist-current-item

The default height shown is 60px.

Change it to 150px

Also change ????

}

.wp-playlist-current-item .wp-playlist-item-title,
(ADDED) .wp-playlist-current-item .wp-playlist-item-album,
.wp-playlist-current-item .wp-playlist-item-artist {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
(ADDED) padding: 10px;
(ADDED) font-weight: bold;
}

WordPress – Setting Initial Volume in Audio Playlist

Adjusting the initial audio volume in the WordPress default Playlist creator.

Go to the web site’s server and find the folder:

/public_html (or folder with WordPress folders)/wp-includes/js/mediaelement/

Locate the File name:

mediaelement-and-player.min.js

Using Ctrl+F, search for – startVolume

There should be two (2) instances of the startVolume:0.8 entry. It appears that “0.8” refers to 80% initial volume. If you want 100% volume at startup, change “0.8” to “1”. If you want a different percentage, change “0.8” to “0.5” for 50%, “0.3” for 30%, etc

It appears the startVolume entry affects video and audio seperately. The first entry seems to relate to the volume of the video player and the second adjust the volume on the audio player.