Slider Revolution Magento 2.x Extension Documentation

Add Slider to one of your site’s Pages

In CMS Block/Page content editor paste shortcode in content:


In CMS Block/Page content editor click Insert Widget button:


Choose NWDthemes Revolution Slider Widget Type, choose slider you want to insert and click Insert Widget Button


The Shortcode and Widget methods will work fine for most themes, but depending on how your theme was built, you may need to add the slider directly to one of your theme's php or xml files. This method is for advanced users only, and you'll need to be comfortable editing a php or xml file before you begin.

To insert slider using xml layout update file you can use this code, where alias node value is alias of your slider:

<block class="Nwdthemes\Revslider\Block\Revslider">
        <argument name="alias" xsi:type="string">alias</argument>

Or you can create slider block programmatically in your controller or block code and pass alias name of your slider as argument to setAlias function:


To output block html use following code:

<?php echo $block->getLayout()
    ->toHtml(); ?>