Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

When you create you your slider there are several ways to add it to a page which will be explained below.

Inserting the slider with shortcode

To insert the slider, edit a page or post and click on "Master Slider button" on WordPress editor, then select a slider from the list. The slider shortcode will be added to WordPress editor, publish the page and you are done.

The figure below shows these options on Master Slider panel.

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 the sidebar on the left, and select "Widgets". Grab the MasterSlider WP Widget and drop it into one of your widget areaareas. Please note that some themes may not support a widget area what that you need. In this case, you can create a new widget area by editing your theme files. ** CR

Calling the slider from your theme files

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 functions which you can call for . For example, from the " header.php " file of your theme and it inserts your slider into your home page or certail certain other pages. Here they are :

Code Block
<?php masterslider ( $slider_id ); ?>


Code Block
<?php echo get_masterslider ( $slider_id ); ?>

Those display MasterSlider based on the slider id passed to.

(info) It is important when you want to insert a slider to check its ID on the MasterSlider WP slider list page. When you removes 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.