Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello!

    In the slider revolution settings page, under Slider Settings, you should be able to fund the shortcode for the slider in 2. Slider Title and Shortcode.

    with the Shortcode, you can copy and paste it anywhere on your site to call the Revolution Slider to your pages.

    Give the shortcode a try and let me know if that works for you.

    Thread Starter zeshankhanbwp

    (@zeshankhanbwp)

    Hi Kevin: this is the php code of Slider Revolution
    <?php putRevSlider("home","homepage") ?>
    I want to put this code after the header menu i deactivate the default sliders of the virtue theme. and want to put the slider revolution code to set the as homepage sliders.
    i Put this code in the theme editor/header.php but nothing shows. also put this code in frontpage.php slider show beautifully but the slider in not in the right place.
    I want to know where to put this code in virtue theme editor?
    thanks
    zeeshan

    Hey,
    I really suggest you use the shortcode for the slider. Not the php code. You can see the shortcode in your slider settings. then just add that into the page content.

    If you are going to place into the code and only on the front page you need to add to the front-page.php file.

    Kadence Themes

    Thread Starter zeshankhanbwp

    (@zeshankhanbwp)

    Hi: Kadence Themes thanks for great suggestion.
    I am using the shortcode not the php code as you suggest. I put the shortcode [rev_slider courses] in front-page.php
    shortcode is not working in my frontpage. It shows the shortcode after the menu not the slider.
    shortcode working perfectly in my gallery page.
    My gallery page link is below:
    https://zeeshannasir786.com/gallery/
    thanks
    zeeshan

    Thread Starter zeshankhanbwp

    (@zeshankhanbwp)

    Sorry this is the php code forgive me.
    I put this code in front-page.php <?php putRevSlider("courses","homepage") ?>
    It works perfectly
    My site link front page is given below:
    https://zeeshannasir786.com
    But there is some confusion want to discuss with you why u not suggest the php code: <?php putRevSlider("courses","homepage") ?> in front-page.php file but working perfectly.
    shortcode: [rev_slider courses] working perfectly in my gallery page.
    You are theme author and expert and provide such a great theme thanks so much.
    but i am not even basic expert.
    thanks
    zeeshan

    Hey,
    I am suggesting that you not do anything in a php file. Hence not using the php code. Editing files will require that you use a child theme (else your content will be lost when there is an update).
    To me it makes more sense to just add the shortcode into the page content rather then into a template file.

    But yes if you are going to use front-page.php then in the php file you use the php code.

    Sorry for any confusion.

    Kadence Themes

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Slider revolution Responsive plugin php code only on front page’ is closed to new replies.