Archive: Wordpress

Set custom image size for images upload to WordPress

Posted on: 22 June 2018     Posted by: Freesize Workroom

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

Posted on: 16 March 2017     Posted by: Freesize Workroom

Copy and paste the following code into…Paste here… attribute.

Read more »

Simple dropdown menu for WordPress

Posted on: 15 March 2017     Posted by: Freesize Workroom

A very simple drop-down menu for WordPress.

Read more »

Limit characters for post content for WordPress

Posted on: 29 December 2015     Posted by: Freesize Workroom
Categories: 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

Posted on: 27 December 2015     Posted by: Freesize Workroom

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

Posted on: 22 May 2015     Posted by: Freesize Workroom
Categories: Wordpress

An awesome reference for those who do customizations for WordPress! http://hookr.io/

Read more »

Awesome SQL queries for WordPress Migration

Posted on: 05 May 2015     Posted by: Freesize Workroom
Categories: Wordpress

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 »