'msp-how-use-tab', 'title' => __( 'Display Sliders on pages', MSWP_TEXT_DOMAIN ), 'callback' => array( $this, 'display_masterslider' ) // callback to display tab content @km! ), array('id' => 'msp-supp-tab', 'title' => __( 'Master Slider Support', MSWP_TEXT_DOMAIN ), 'callback' => array( $this, 'display_support' ) // callback to display tab content @km! ) ); parent::__construct( $tabs, msp_get_screen_ids(), 'masterslider_help_tab_' ); } public function display_masterslider(){ ?>

How to Display Sliders on Pages

You can display Master Slider on your website with using one of the three ways that are explained below.


1 - Inserting the slider with WordPress Editor button

You can place your sliders into pages and posts with their shortcodes.

Click on "Master Slider button" on WordPress editor, then select a slider from list. The slider shortcode will be added to WordPress editor.


2 - Inserting the slider with shortcode

You can place your sliders into pages and posts with their shortcodes.

You can find the shortcode for each slider in Master Slider admin page next to their names in the list view.

To insert the slider, edit a page or post and insert its shortcode into the WordPress text editor like following screenshot.

In this example the shortcode is [masterslider id="1"]


3 - Inserting the slider with the Master Slider WP widget

MasterSlider WP supports widgets, so you can place your slider in your front-end page just by a drag n' drop. To do that, navigate to the Appearance menu on your left sidebar and select "Widgets". Grab the MasterSlider WP Widget and drop it into one of your widget area. Please note that some themes may not support a widget area what you need. In this case, you can create a new widget area by editing your theme files.


4 - Calling the slider from your theme files (For Advanced users)

Because a slider can be an integral part of your site, you may want to place it into your theme files. There are some PHP function which you can call for example from the header.php file of your theme and it inserts your slider into your home page or certail other pages. Here they are :


Description

Displays Master Slider markup for specific slider ID

Usage :

<?php masterslider( $id ); ?>

It's equal to :

<?php echo get_masterslider( $id ); ?>

Parameters :
$id
(int) The slider ID that can be found on the plugin page in the slider list view at the first table column. Default: Null

Example :

If you've created a slider and the slider ID is equal to 1 you can use the following code to display the slider on your website.

<?php masterslider ( 1 ); ?>

OR

<?php echo get_masterslider ( 1 ); ?>


Note: If you are developer, take a look at our developer documentation too.


It is important when you want to insert a slider to check its ID on the MasterSlider WP slider list page. When you remove some sliders, their IDs won't be re-indexed and the sequence may broke up. This is important to keep persistent your sliders preventing unwanted changes on the already inserted ones.

Support


If you have any questions please follow these steps:


Why support forum?
Supporting our Items INCLUDES:
Item support does NOT include:

Important Note We CAN NOT provide support via email. Please ask your support related questions only in our support forum.


Important Note For the fast troubleshooting, please send us detailed informations about the issue and make sure that you don't forget to send us your site url where you are using or want to use the item. Please note, that we cannot troubleshoot from screencast videos or screenshots.