caption jumps up

mantz's Avatar


09 Feb, 2019 04:56 PM

I moved the caption outside the image by: .rsUni .rsGCaption {margin-bottom: -18px !important;}
Some times the caption needs 2 lines. Now the whole Caption space widens corectly but jumps up trying to center vertically and slips into the image again. How can I resolve this? Se image.
Best regards,

  1. Support Staff 1 Posted by Dmitry Semenov on 09 Feb, 2019 10:10 PM

    Dmitry Semenov's Avatar


    You may use such code to move global caption below the slider element:

    // Add to your theme functions.php
    function add_additional_rs_code() {
         // will move caption below the slider element
         $('.royalSlider').after( $('.rsGCaption') );
    add_action('new_rs_after_js_init_code', 'add_additional_rs_code');
  2. 2 Posted by mantz on 10 Feb, 2019 05:25 PM

    mantz's Avatar

    Dear Dimitry,

    thank you so much, You are a genius.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • Caption.jpg 155 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac