Category Archives: Web Development Tips
Changing the default site of a WordPress multisite/network installation
from http://wordpress.org/support/topic/default-multisite-redirect-to-one-particular-blog?replies=8 1) In Network Admin -> Sites and edit the site you want to be the new ‘main’ domain so it’s url is http://example.com (remove the subdomain or subfolder path totally). 2) Change the define(‘BLOG_ID_CURRENT_SITE’, 1); to whatever you want. Save it, upload it. DO NOT CHANGE SITE ID, YOU WILL BREAK THINGS. 3) […]
HTML tags aware version of PHP substr
If you need a html-tags aware version of substr, this one should do the job. It works fine for me <?php /** * Truncates text. * * Cuts a string to the length of $length and replaces the last characters * with the ending if the text is longer than length. * * @param string […]
jQuery change event for Dynamically Created Radio Buttons
Use .live() when adding controls dynamically, like this: $(“input[name=’songs’]”).live(“change”, function() { alert($(this).val()); }); linkстратегия бренда пример
Control Link Description of a WordPress link shared on Facebook
Today I have been facing problem sharing my website link at facebook. It was showing the wrong description, which I have recognized as the previous description of my site. After changing the description google is showing okay, but facebook seems to fail at getting the new description. After some googling I have come to that […]
WAMP Server “Forbidden You don’t have permission to access / on this server.”
Are you using WAMP server and getting 403 Forbidden message like the one shown below? I have wasted an hour on that. Funny! Seems like it was my fault — To recover from that – Just select the put online option using the icon at the taskbar as shown in the screenshot below translation from […]