Allow WordPress Contributors to Upload Images, Not All Kind of Files

Go dashboard -> Appearance -> Theme Editor -> Theme Functions Add the following php code // Let Contributor Role to Upload Media 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’ ); } // Upload Images Only add_filter(‘upload_mimes’, ‘custom_upload_mimes’); function … Read more

Click to View All Content .Js – Show More Content on Click

The resource of click to view more content. HTML code: This is free script from webenlance Dr. Anil Kohli is an Endodontist, Dental Surgeon and Dentist in Lajpat Nagar, Delhi and has an experience of 40 years in these fields. Dr. Anil Kohli practices at Duis nisl nibh, egestas at fermentum at, viverra et purus. … Read more

[Solved] How to Remove WordPress Menu Class & ID

Some of you may want to remove wp_nav_menu remove classes from li Just like this: Intro Portfolio Contact Blog Shop If you don’t know how to remove the class and id, here is the solution. I used the ideas on stackoverflow here, but it didn’t work for me, I use the following code, and it … Read more

WordPress Responsive Captions & Images

Wordpress image captions responsive

More and more people using mobile and pad to surfer the internet these days, for most of the websites, 60-80% visitors using mobile now, so make your site responsive is accessory. For some of the “old” WordPress themes, they’re responsive, but the images you insert with captions don’t behave responsive, I have found some solutions, … Read more