How to use dynamic text in an html/htm page

Whether you have a Joomla, WordPress, or E-commerce website, updating the copyright year on your website may not be a legal requirement, but it’s a smart marketing method to prove that your business is active. Showing the year is especially important if you have a site without dates on its content. There’re many ways you can automatically refresh the copyright year by inserting a simple JavaScript or php script (see below) into your website’s html code, or you can manually change the year in the…

Continue reading »

Moving WP Database to another hosting server

After moving WP website to another server, you’ll try to login to Admin Control Panel, you might see this error “You do not have sufficient permissions to access this page.” This is how to fix it: UPDATE `{%TABLE_PREFIX%}usermeta` SET `meta_key` = replace(`meta_key`, ‘{%OLD_TABLE_PREFIX%}’,'{%NEW_TABLE_PREFIX%}’); UPDATE `{%TABLE_PREFIX%}options` SET `option_name` = replace(`option_name`, ‘{%OLD_TABLE_PREFIX%}’, ‘{%NEW_TABLE_PREFIX%}’);

Continue reading »

Show or hide the page title in WordPress

Many of you have asked me a question how you hide the page title in WordPress, for example Home page. Some people don’t like to show the word “Home” right on frontpage. I tell you what; it’s not that difficult if you know how classes and functions work in this system. So this is what you should do to hide the title of the frontpage. step 1) Go to directory /wp-includes/ in the root directory step 2) Edit the function called function the_title($before = ”,…

Continue reading »