Slider on the site and in the preview look different

In this article

Design problems

1
Text color, background look different

Many people use CSS codes with !important property, or other strong CSS codes without specifying which part of the website should it affect. It is not a good thing, because it overwrites the proper codes. To find out what codes affect the parts of your slider check out this documentation.

2
Bold fonts aren't bold anymore

If you only have problem with the boldness of your font and you are using Google Fonts, the problem can be that the Google Font you're using is called in by something else (theme or another plugin) of your site. It can happen that their call overrides ours, because Google Fotns have an exact name, and there can only be one font with that name on your site.

The reason this is related to the boldness, because each font can have different font weights, and if the theme/plugin calls in the font with a different weight, that will override ours. So the solution is to either remove or modify the other Google Font call to call in the font weight you need.

3
Buttons have a "sub-button"

There are themes, which use autop functions in their content, which means that they add <p> and maybe <br> tags everywhere in the code. You can check this out by looking at the code of your slider, by right clicking on the slider, and Inspect element. If there are empty <p></p> tags in the slider's code, then it must be the case. You can try out to put the slider's shortcode between [raw][/raw] tags like this:

[raw][smartslider3 slider="1"][/raw]
	

If it doesn't work, in most cases you can remove this from your theme by adding this code into the first line of your header.php file:

<?php remove_filter( "the_content", "wpautop" ); ?>
	

But if you would like to keep it, and the [raw][/raw] doesn't work, then you should contact your theme developers, and ask them, how can you put a shortcode into a page or post without autop formatting.

If adding this remove_filter won't work either, you could also try to search within your theme's files for this code. If you have a page builder, search within the files of that code too. You should search for the word "autop", which will probably point you to the right location and you could try to remove this code from your theme (or page builder).

SiteOrigin page builder

If you're using SiteOrigin page builder, they have this autop function, too. It's used automatically in their Text widget, but we have our own widget and you should use that instead.

If you need to use their text widget for any reason, then it has an Automatically add paragraphs option, which you should disable.

4
Text remains bold/italic

This problem happens when you used the Text layer, or some other layer where the <b> or <i> tags were entered manually, and were not closed properly. Make sure that every opened <b> or <i> is followed by a </b> or </i> that closes them.

If you're using more HTML tags, then they should be closed in the opposite order they were opened. E.g.:

<b><i>This text is bold and italic. There&#039;s also a <a href="#">link</a>.</i></b>
	

Notice how the <b> tag, that was opened first is closed last.

5
Texts are too large on mobile

If you used the size modifier to make the fonts smaller or larger on mobile, but they don't look like the setting you made, it can happen that your theme is overriding your settings with some code. You should check it out using your browser's developer tools.

6
Animations aren't correct

If the slider's animation looks weird or the slider doesn't load into it's correct place, then the problem can be that there are CSS transition codes coming from your theme, targeting the slider or its layers. Find these codes and remove them using using your browser's developer tools.

This is a known issue with MageeWP theme. Find these codes in the style.css file and remove them.

:hover {
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease;
}
	

Slider doesn't resize correctly

Theme/page builder caused problems

1
Unclosed float CSS

If there are unclosed float CSS codes on your page, those elements doesn't have widths in the regular way, so they can mess up width calculations.

Solution: Go to Slider Settings → Developer tab and turn on Clear before.

2
JavaScript or CSS animation modifies the slider's parent

Sometimes themes and page builders are using js codes or css animations to modify how a place on your website looks like. If you put our slider into that place, this could cause resizing issues.

  1. Possible solution 1: Go to Slider Settings → Loading tab and turn on Delayed (for lightbox/tabs).
  2. Possible solution 2: Go to Slider Settings → Developer tab and paste the following code to the JavaScript callbacks field:
    jQuery(window).load(function(){
        setTimeout(function(){
            jQuery.each(window['n2ss']['sliders'], function(index, value){
                window['n2ss']['sliders'][index].responsive.invalidateResponsiveState = true;
                window['n2ss']['sliders'][index].responsive.doResize();
            });
        }, 300);
    });
    
    
    jQuery(window).resize(function(){
        setTimeout(function(){
            jQuery.each(window['n2ss']['sliders'], function(index, value){
                window['n2ss']['sliders'][index].responsive.invalidateResponsiveState = true;
                window['n2ss']['sliders'][index].responsive.doResize();
            });
        }, 300);
    });
    		

    This code will trigger the resizing of our slider 300ms after your page finished loading or the browser is resized. Usually 300ms is enough, but you can try to change this value. You could try to increase it to for example 2000ms, just to see if this is the solution for your problem, because after 2 seconds it should surely work, if this is the solution. Then you could try to decrease until it still works.

Configuration issues

1
Layout

The size your slider has on the frontend is defined by your layout, which can be Boxed, Full width or Full page Pro

If you want your slider to fill up the whole browser width, make sure to use Full width and not auto. Similarly, if you want the slider to only fill up its parent, you should select Boxed.

2
Fill mode

It's based on the Slider settings → Slides tab →Slide background image fill option how your images look like in the slider. By default the Fill option is used which will make the image as big as it needs to be to cover the whole slider.

If you have Center selected, that is not responsive, it will just display your background images with their original sizes.

If you have Fit selected, this mode works that way that it adjusts the image within the slide to ensure that the image is always fully visible and is never cropper. If this mode causes your problem, you should either switch to Fill or make sure that your slider and images have the same size.

The fill mode option is available at each Slide. If it's correct on the slider level, make sure to check it at the slide.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.