• oldcode

    (@coconutcoder)


    Slider Revolution – Premium responsive slider Version 5.2.6

    WordPress Version 4.6.1

    URL : [http://tecinfrared.com/slider-development/](http://tecinfrared.com/slider-development/)

    Hi, I just purchased a Slider Revolution 5.2. I have a test page with only a spacer div at the top of the content editor, then followed by a revolution slider shortcode [rev_slider alias=”grill_accessories”]

    Even though I set the slide to a custom size of 1920 x 320 (large screen) and 1024 x 320 (laptop), the slide is showing at only 42px high. I don’t know what’s causing this, but I do notice the rev_slider is wrapped in p tags, and the paragraph is 42 px high. I don’t really know that that is the particular problem. I don’t know what the problem is.

    I’ve used Rev. Slider on another website without any problem.

    As I use the web developer inspector in Chrome, I see something like this in the script text of my output.class.php:

    var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss="";
    						if(htmlDiv) {
    							htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss;
    						}else{
    							var htmlDiv = document.createElement("div");
    							htmlDiv.innerHTML = "</p>
    <style>" + htmlDivCss + "</style>
    <p>";
    							document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]);
    						}

    Do you see the spurious “p” tags in the code? Yeah, those occur throughout the html output. For some reason WordPress is sprinkling the rev slider code with unwanted p tags. I’m looking at the output.class.php code in Netbeans, and those p tags aren’t in the hard code. I think it’s those introduced p tags that are screwing up my slider.

    • This topic was modified 7 years, 6 months ago by oldcode. Reason: added code sample
  • The topic ‘Slider Revolution height not working. WordPress introducing p tags into plugin c’ is closed to new replies.