Author: admin
WordPress – Contributor Can’t Add Media or Featured Image to Posts or Events
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 – Admin Can’t Embed YouTube Videos
Instead of using the embed code, simply use the URL for the video.
WordPress – Tempera Theme – Top Bar Spacing
Add this code to the Custom CSS area under Miscellaneous Settings:
/* Tempera Custom CSS */
#topbar {margin: 10px;}
Facebook – Setting Up Like Button on Web Sites
Go to: http://developers.connect.facebook.com/docs/reference/plugins/like/
In the first code generated, the hidden code, you must edit the code and add “http:” before “//connect” within the code.
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.
WordPress – Tempera Theme – Removing the “More Posts” Button From the Front Page
Go to the theme settings, miscellaneous settings and add this code to the CSS area.
#cryout_ajax_more_trigger {
display: none;
}