Archive: Wordpress
Set custom image size for images upload to WordPress
Set the image size by resizing the image proportionally (without distorting it): Set the image size by cropping the image (not showing part of it): Set the image size by cropping the image and defining a crop position: When setting a crop position, the first value in the array is the x axis crop position, […]
Read more »Generate WordPress title tag
Copy and paste the following code into
Simple dropdown menu for WordPress
A very simple drop-down menu for WordPress.
Read more »Limit characters for post content for WordPress
A simple function to limit characters for post excerpt, post title and post content for WordPress The function will make use of WordPress in-built function to strip away short codes (strip_shortcodes()) and HTML tags (wp_strip_all_tags()) and return a string with length not more than the limit set. Coding for the limit characters function: Simply place […]
Read more »How to add CSS or JS to your WordPress site
Use wp_enqueue_script() function to enqueue CSS or JS scripts. Read here for more details. The following example will enqueue the JS script of jQuery Cycle 2 to footer of the WordPress site. (Add the code below to function.php) If you need enqueue the script on a specific page, simply use the conditional tag. […]
Read more »hookr.io – A very neat collection of APIs required for WordPress Customization
An awesome reference for those who do customizations for WordPress! http://hookr.io/
Read more »Awesome SQL queries for WordPress Migration
Use the following queries to change the domain of a WordPress site: In the most cases, the three queries above should get your WordPress site up and running on the new domain URL. If you are able to access home page but not the sub pages on the new domain name, simply just login […]
Read more »