Magento WordPress Root Installation

« Back to Magento WordPress Root

  • Magento 1
  • Magento 2
Magento 1

Before installing the Root add-on module, ensure that you have the latest version of Magento WordPress Integration and all other FishPig add-on modules.

To install the module, download the ZIP file from your account, extract the files and merge them with your website. For full details on how to install any Magento 1 module, please see the Magento extension installation guide.

Configuration

After installing the module, you can configure it at System > Configuration > WordPress > Integration. There are 2 options: Integrate at Root and Replace Homepage. If Integrate at Root is enabled, the blog route (eg. /blog/) will be removed from all URLs. If Replace Homepage is enabled, WordPress will be set as the Magento homepage.

Next you will need to change the WordPress home URL. To do this, select Settings > General from the WordPress Admin. You should see 2 URLs. Change the second URL to your Magento store's base URL. If you are unsure what this is, it should state the correct URL in the configuration area for the module in the Magento Admin.

To finish the configuration, open your wp-config.php file and find the WP_DEBUG line and add the following below it:

define('COOKIEPATH', '/'); // Add this below the WP_DEBUG line

Add /blog/ Back in to Some URLs

While it's useful to remove /blog/ (or whatever your blog URL is) from some URLs, it's useful to keep it for your default posts. To do this, select Settings > Permalinks in the WordPress Admin and add /blog/ to the permalink structure (eg. /blog/%postname%/).

Create a /blog/ Archive for Default Posts

Create a page named Blog in the WordPress Admin. Next, select Appearance > Customise > Static Homepage and then select the new page as the Post List page. When you view this page, you will see the default post list.

Magento 2

Before installing the Root add-on module, ensure that you have the latest version of Magento WordPress Integration and all other FishPig add-on modules.

To install the module, download the ZIP file from your account, extract the files and upload them to the app/code/FishPig/WordPress_Root directory. Ensure you use the correct capitalisation on the folder name. Finally enable the module via the terminal or the Admin module wizard

For full details on how to install and enable any Magento 2 module, please see the Magento 2 extension installation guide.

Configuration

Next you need to change the WordPress home URL to be the base URL of your Magento store. To do this, login to the WordPress Admin and select Settings > General. You should see 2 URL fields. Change the second field to your Magento store's base URL.

To finish the configuration, open your wp-config.php file and find the WP_DEBUG line and add the following below it:

define('COOKIEPATH', '/'); // Add this below the WP_DEBUG line

Add /blog/ Back in to Some URLs

While it's useful to remove /blog/ (or whatever your blog URL is) from some URLs, it's useful to keep it for your default posts. To do this, select Settings > Permalinks in the WordPress Admin and add /blog/ to the permalink structure (eg. /blog/%postname%/).

Create a /blog/ Archive for Default Posts

Create a page named Blog in the WordPress Admin. Next, select Appearance > Customise > Static Homepage and then select the new page as the Post List page. When you view this page, you will see the default post list.

Magento WordPress
Root
Documentation Articles

Post your comment

FishPig Ltd