Posts

How to increase Word Press memory limit

Image
I was trying to build a template with Elementor Pro and integrate it with the Knowledge Base/Wiki plugin. Every time I try to use it I get a  '   Preview Could Not Be Loaded' Error. I de-activated the plugin and Elementor preview worked without problems.  I went to Elementor - Tools and enabled Debug bar. When I tried to create a template and saw the error again I chose to debug and saw the message:  Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes). Plugin developer recommended to: -  Open  wp-config.php , which is located in the root WordPress directory. - At the end of the file, add the following line: define('WP_MEMORY_LIMIT', '256M'); Save your changes.  Usually, this method solves the issue but in this case, I continued to get the same fatal error message.  After research, I found another method - to add the line in php.ini file. In my case my hosting provider had php.ini file in Contr...

Show Prices On Frontend When Product Is Sold Out Shopify (Parallax template)

My company is using Parallax theme from Shopify and by default, it does not show prices if the product is sold out. In order to display the product price in sold-out products on product pages you have to do the following: In your admin end go to Themes - Actions - Edit Code . Then go to Sections and choose product-template.liquid. Find {% if variant.available == false %}{{ 'products.product.sold_out' | t }}{% endif %} And replace it with this:  {% if variant.available == false %}{{ 'products.product.sold_out' | t }}{% endif %}  {{ variant.price | money }}

Adding tables to wordpress

Image
I needed a free simple table plugin for my wordpress site and I found TablePress plugin. TablePress allows you to easily create and manage beautiful tables. You can embed the tables into posts, pages, or text widgets with a simple Shortcode. I installed it and it was easy to create and use tables. To create a table go to dashboard and you see it there: Then you can add a table and specify the number of columns and rows. To adjust column width you go to TablePress Plugin option and insert the code for the specified table (each table has its' own number. The developer describes how to do it here . I decided to go with %% instead of pixels since when you specify pixels the table is not responsive any more. When you use percentage then the table will be responsive and fit on any mobile device.

Redirect only homepage of your website

Image
I had a website where I wanted to redirect just home page. I needed all other pages to be at the original domain address. I put the following line in the .htaccess file RedirectMatch ^/$ http://aaaaa.com where "aaaaa.com" is your home site I use WinSCP - FTP and SFTP client for windows. I couldn't see .htaccess file because it was hidden. In order to see it I went to Options - Preferences - Panel - Show Hidden Files If you have any other client or go thru cPanel and don't see .htaccess file then make sure you enable "hidden files" viewing in these tools.

Installing Dream Spa theme from Theme Forest on Wordpress

I had recently bought a Dream Spa template for my WordPress site to create a site for my salon. I installed it thru WP site. I went to: Admin - Appearance - Themes - Add New - Upload. They offer two .zip packages for installation  - one is installable WordPress only and another is with installation package and all documentation. Both are .zip files. I thought that the package with all the files is the best one and tried to install it. I got the following error: Theme is missing the style.css stylesheet error. The solution is to only install the installable WordPress package - here is a great HowTo from themeforest: Theme is missing the style.css stylesheet error Then I followed these instructions to upload a demo content to my site.

Resetting/Recoverring WordPress password through PHPAdmin.

Image
I installed a new Wordpress and then lost password. When I tried to recover it thru Wordpress web login it didn't let me. The recovery via email was disabled for my site. So I found a great tutorial on wordpress wiki and did it via PHPAdmin. his article is for those who have  phpMyAdmin  access to their database.  Note: use phpMyAdmin at your own risk. If you doubt your ability to use it, seek further advice. WordPress is not responsible for loss of data. Begin by logging into phpMyAdmin and clicking  databases . Image #2 A list of databases will appear. Click your WordPress database. Image #3 All the tables in your database will appear. If not, click  Structure . Look for  wp_users  in the Table column. Click on the icon for  browse . Locate your Username under user_login Click  edit  (may look like a pencil icon in some versions of phpMyAdmin) Image #4 Your user_id will be shown...

Clone move backup wordpress to another domain

I wanted to create a clone of my wordpress website to put it on a sub domain and play with it. So I was looking for the simplest solution and I found one. I used WPClone .  As they say on their website:  WP Clone is the easiest, fastest and most secure way to move or copy a WordPress site to another domain or hosting server. You can also use it to move your site to/from local server hosting, to create copies of your site for development or testing purposes, to backup your site, and to install pre-configured versions of WordPress. I installed WPClone as a plugin (Navigate to Plugins - Add New) and then activated it. Then I went to the plugin and backed up my site. After backing (automatically) it gave me a link which I copied. I then install a new WP site on my subdomain and installed WP clone plugin and activated it. After that I went to WP plugin on my new site and chose to restore. I pasted the link and it restored all my database, plugins, all i...