How to add an option to wordpress general settings page i.e. /wp-admin/options-general.php? The dirty way. Put the following snippet in functions.php file:
Tag: wordpress
Setting content headers to send WordPress HTML email
Just paste the following code snippet to your functions.php file of your current theme. It will force all emails to be sent in HTML format. [php]function set_html_content_type() { return ‘text/html’; } add_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ );[/php] If you want to set…
How to change WordPress default FROM name & email address
Paste the following code into functions.php file of your in-use theme. Don’t forget to put the desired email address in new_mail_from function(line 5) and desired name in new_mail_from_name function (line 8). If you do not know how to do it…
WordPress + Web.config “not found” error on home page
I was trying to setup wordpress on IIS when i faced this problem. I placed a web.config file with given xml code and pretty urls (permalinks) worked fine on all page except the home page. Home page gave a Not…
How to edit a page in WordPress
Quick notes on how to change text from back end in WordPress. This may make newbie in WordPress to be able to edit a page text. Login to WordPress CMS back-end by suffixing /wp-admin/ to your website address.. For example…
How to open a WordPress menu child link in new window with jQuery
Following is the example code for how to open a WordPress menu child link in new window with jQuery.
How to open a wordpress menu link in new tab
I will show you how to make a wordpress menu link open in new browser tab. Open a Menus in WordPress Admin Section > Appearance tab.
Resize image using Advanced Settings tab in WordPress Image Editor
I literally overlooked this very useful option till now. So.. you can re-size image to your desired dimension by clicking those 60%, 70% tabs as shown in the figure below. hmm!
Caching large menus or header/footer links in WordPress
Even if you are not using some robust caching plugin or tool in wordpress you can cache small chunks of data using basic caching techniques of PHP. In my example i had been creating a few dozens of links in…
Creating a portfolio or gallery using WordPress media files
One of the cool things one can do in wordpress is to create a gallery or portfolio of images using files directly from Media Library. In general after been uploaded, files in wordpress become “Attachments”. I will show you how…