Skip to content

Magento 2 Cross Links Manual

Cross Links Cover

Introduction

SEO crosslinks are the links that connect related site pages, or pages with similar content. Also, this links can connect related subdomains as well as different websites. Such links are used to raise customers interest to certain products or categories, enhance navigation between related and cross sell products and increase sales. With the help of Cross Linking extension for Magento 2 it’s possible to automatically create internal or external cross links between different products and/or categories. Well-organized store structure will help to support stronger search engine rankings for the website.

Requirements and Installation

Cross Links extension supports both Community and Enterprise edition of Magento starting from version 2.2. The current version of the Magento installed on your website can be found in the lower right corner of any backend page.

Magento 2 Version

Cross Links extension has 2 separate ways of installation: via Composer or by copying the code.

1) Copy the code (ready-to-paste package);
2) Use MageWorx Repository;
3) Use local Composer.

Extension Configuration

To tweak the general Cross Link settings, log into the Magento Admin panel and go to STORES ⟶ Configuration ⟶ MAGEWORX ⟶ SEO. The configuration of the extension is provided under the SEO Cross Links tab.

SEO Markup

  • Enable - this setting enables the Cross Link functionality. The Cross Links will be inserted on the fly on all the relevant pages. Also, Cross Links can be individually disabled for any Product or Category page.

  • Total Max Replacement Count for Product Page - this number specifies a maximum number of links added by our extension per each product page.

  • Total Max Replacement Count for Category Page - this number specifies a maximum number of links added by our extension per each categor page.

  • Total Max Replacement Count for CMS Page - this number specifies a maximum number of links added by our extension per each CMS page. The links are added to the page content, except for the content of widgets. Cross links are not added to the homepage.

  • Total Max Replacement Count for Landing Page - this number specifies a maximum number of links added by our extension per each landing page. The links are added to the top and bottom blocks of the landing page. This setting is shown only if the MageWorx Landing Pages extension is installed.

Example

These settings allow you to limit the number of links, added by our extensions, per each page. They help to avoid overloading with the links one a single page, because the cross links are added automatically and if a page has many keywords, that are added as the cross links in the extension, it can add too many links per one page.

  • Use Product/Category Name in the Cross Link's Title Tag - this setting allows to use a product/category name as the "title" attribute of the cross links that lead to a product or a category:
    --- Don't Use - this value disables this setting. The cross link's own Link Title is used.
    --- For Blank - the product/category name is used only for the cross links with an empty Link Title. This is the default value.
    --- For All - the product/category name is used for all cross links that lead to a product or a category.

  • Replace on Product Page In - this setting allows you to choose a product short and/or long description to add the links on: Product Short Description and/or Product Description.

  • Default Link Target - this setting defines the default link target attribute:
    --- _self - this value will open the cross link in the same browser tab.
    --- _blank - this value will open the cross link in a new browser tab.

  • Default Link Reference - this setting just sets the default value for the "Link Reference" setting, when adding new cross links in the back-end. The "Link Reference" can be changed per each cross link separately.

  • Default Replacement Count - this setting specifies a default number how many one keyword can be replaced as the links per one page. You can set the max replacement count for each cross link separately.

Example

This setting is set to number 5 and you created a cross link for "mageworx" keyword. If a product page has 10 "mageworx" keyword, only 5 first "mageworx" keywords will be replaced as the link.

  • Default Priority - this setting just sets the default value for the "Priority" setting, when adding new cross links in the back-end. You can set the Priority for each cross link separately.

  • Enable by Default - this setting just sets the default value for the "Is Active" setting, when adding new cross links in the back-end.

  • Default Values for 'Destination' Tab - this setting just sets the default values for the "Destination" tab, when adding new cross links in the back-end. You can select Product Page, Category Page, CMS Page Content and, if the Landing Pages extension is installed, Landing Page.

Note

The same SEO configuration page also shows the SEO Common Settings group (Length settings for Properties, Disable SEO Features for logged customer) and, on Adobe Commerce, the CMS Pages in Hierarchy group (Page URL Source, Preferred Path). These settings are shared with other MageWorx SEO extensions (SEO reports, canonical URLs, XML sitemaps) and do not affect the cross links.

To view, edit and add the cross links, go to MARKETING ⟶ MageWorx SEO Cross Links ⟶ Cross Links.

SEO Cross Links

The columns can be sorted alphabetically by clicking the column title.

The grid shows the following columns: ID, Keyword, Link Title, Link Target, Custom URL, Product, Category, Replacement Count, Priority, Store View, Use in Product, Use in Category, Use in CMS Page, Nofollow and Enable.

The grid supports mass actions. For this, click the checkboxes near the cross links that you wish to modify and click the Edit link on the Actions dropdown. When the edits are done, click the Save Edits button to proceed. The Actions dropdown also lets you Delete, Disable or Enable the selected cross links.

To create a new cross link, click the Add New Crosslink button.

The configuration of the new cross link consists of 2 tabs: Cross Link and Destination.

SEO New Cross Link

  • Keyword - you can enter a keyword or a list of keywords that should be replaced with links. Only one keyword or keyword phrase should be set per one line. You can find more information how to add the keywords here.

  • Link Title - this setting allows you to specify the title attribute for the links.

  • Link Target - this setting defines the link target attribute:
    --- _self - this value will open the cross link in the same browser tab.
    --- _blank - this value will open the cross link in a new browser tab.

  • Store View - this multi-select allows you to choose the store views, where the current keyword(s) should be replaced.

  • Reference - in this drop-down you can specify the pages your cross links will be connected to. That can be specified by the 4 options: Custom URL, Product, Category and Landing Page.
    --- The Custom URL supports both absolute (https://www.site.com/custom/url) and relative (/custom/url) URL values.
    --- Product. To select a desired product, click the Choose button. SEO New Cross Link Once the store owner clicks the Choose button, the products grid appears. You can filter the products by selecting the category from the category tree.
    --- Category. To select a desired category, click the Choose button.


    --- Landing Page. You can link your keywords to the landing pages if MageWorx Landing Pages extension is installed. To select the targeted landing pages, click the Choose button. SEO New Cross Link
    In a newly-opened tab, you can select a landing page your cross links will be connected to. SEO New Cross Link.

Note

If a custom page is added as a targeted page for a keyword, this keyword won't be replaced on this custom page.

  • Max Replacement Count per Page - this setting specifies a max number how many one keyword can be replaced as the links per one page. 100 is the max value.

Example

This setting is set to number 5 and you created a cross link for "mageworx" keyword. If a product page has 10 "mageworx" keyword, only 5 first "mageworx" keywords will be replaced as the link.

  • Priority - it defines the order in which the keywords will be replaced; 100 is the highest priorty.

Explanation

The priority can help you to focus on more important keywords and give them a higher priority, when the extension finds the keywords on the page to be replaced first.

Example 1:
- "Total Max Replacement Count for Product Page" = 5;
- "mageworx" keyword is found 7 times on a product page and it has the priority 100;
- "seo extension" keyword is found 1 time on a product page and it has the priority 50;

In this case, the keyword "seo extension" won't be replaced with the link at all, because 5 first "mageworx" keywords will be replaced (due to a higher priority) and it will hit the limit per product page.


Example 2:
- "Total Max Replacement Count for Product Page" = 5;
- "mageworx" keyword is found 3 times on a product page and it has the priority 100;
- "seo extension" keyword is found 6 time on a product page and it has the priority 50;

In this case, the extension will replace all found "mageworx" keywords first and then 2 "seo extension" keywords will be replaced.


Example 3:
- "Total Max Replacement Count for Product Page" = 5;
- "mageworx" keyword is found 3 times on a product page and it has the priority 100;
- "Max Replacement Count per Page" for the "mageworx" keyword = 1;
- "seo extension" keyword is found 6 time on a product page and it has the priority 50;

In this case, the extension will replace only 1 "mageworx" keyword first and then 4 "seo extension" keywords will be replaced. I.e. the extension will find the "mageworx" extension first, because it has a higher priority and replace it using the max replacement count value (1 time). Then 4 "seo extension" keywords will be replaced (5 - 1).

  • Nofollow - this setting allows to add the NOFOLLOW attribute to a cross link.

  • Is Active - this setting enables/disables a cross link. Yu can temporary disable the cross link by putting this setting to No.

Destination tab

SEO New Cross Link Destination

This is the place where you can specify which pages your cross links should appear on. The extension lets you add this type of links on the product, category, CMS pages and custom landing pages.

  • Use in Product - the cross link is added on the product pages.

  • Use in Category - the cross link is added on the category pages.

  • Use in CMS Page - the cross link is added on the CMS pages.

  • Use in Landing Page - the cross link is added on the landing pages. This setting is shown only if the MageWorx Landing Pages extension is installed.

Individual Settings

Additionally, you can exclude any pages from the cross linking schemes.

Categories

For the categories settings, go to PRODUCTS ⟶ Inventory ⟶ Categories, select the desired Category and open the Search Engine Optimization tab.

  • Use in Cross Linking - if is disabled, the crosslinks won't appear in the category's description.

This can be done on the Category Grid as well.

Products

For the products settings, go to PRODUCTS ⟶ Inventory ⟶ Catalog, select the desired Product and open the Search Engine Optimization tab.

If the Use in Cross Linking is disabled, the crosslinks won't appear in the product's description.

CMS Pages

For the CMS pages settings, go to CONTENT ⟶ Elements ⟶ Pages, select the desired CMS page and open the Search Engine Optimization tab.

SEO Crosslinks Pages

If the Use in Crosslinking is disabled, the crosslinks won't appear on the CMS pages.

Landing Pages

If the MageWorx Landing Pages extension is installed, each landing page also has the Use in Cross Linking setting. If it is disabled, the crosslinks won't appear on this landing page.

Got Questions?

Need help with the extensions? Feel free submit a ticket from https://www.mageworx.com/support/ 



Mageworx offers outstanding services developing custom-tailored solutions for Magento platform to attain your eCommerce objectives. Our professional impassioned team provides profound and custom oriented development of your project in a short timeframe.