title: Wordpress Background Revolution Slider Breaking on Upgrade
body: <p>I'm new here and hoping for a bit of help. I’m working on a wordpress custom theme that was build over 8 years ago which has a Slider Revolution slideshow sitting in the back of the home page being called out from the footer area and alternative background images when not the home page. The problem is that I can no longer edit the slides on the original Revolution Slider 4.1 as it was so old, so upgraded to the latest version, but the slide then completely disappeared from the home page and only shows a black background.</p>
  <p>I have been in touch with Theme Punch, but they have said debugging custom themes is beyond their support. I wonder if anyone has come across any similar issues and have any solutions?</p>
  <p>Website with old version of revolution slider is <a href="https://hmdopticians.co.uk" rel="nofollow noreferrer">https://hmdopticians.co.uk</a>
  Testing on <a href="https://zincdesigns.co.uk/hmd" rel="nofollow noreferrer">https://zincdesigns.co.uk/hmd</a> with the latest version of slider revolution.</p>
  <p>Here is the php in the footer:</p>
  <pre><code>&lt;?php if (is_front_page() == true) {   
                  //This is where the parallax will need to go  
                  putRevSlider(&quot;home-slider&quot;) ;
                  ?&gt;
  
                  &lt;script&gt;
                      (function($){
                          $(document).ready(function() {
                              $(window).resize(function() {
                                  var windowWidth = $(window).width();
                                  $('.forcefullwidth_wrapper_tp_banner').css({'width':windowWidth + 'px'});
                              });
                          });
                      })(jQuery);
                  &lt;/script&gt;
  
              &lt;?php
              } else { 
                  $min=1;
                  $max=3;
                  $num = rand($min,$max);
                  
                  switch($num){
                      case 1:
                          echo '&lt;div id=&quot;static_background1&quot;&gt;&lt;/div&gt;';
                          break;
                      case 2:
                          echo '&lt;div id=&quot;static_background2&quot;&gt;&lt;/div&gt;';
                          break;
                      case 3:
                          echo '&lt;div id=&quot;static_background3&quot;&gt;&lt;/div&gt;';
                          break;                    
                  }
              } ?&gt;
  </code></pre>
  <p>Here is the CSS relating to .forcefullwidth_wrapper_tp_banner:</p>
  <pre><code>.forcefullwidth_wrapper_tp_banner{
  z-index:0;
  position: fixed !important; 
  top: 0px; 
  right: 0px; 
  left: 0px; 
  width:inherit !important;
  padding:0px; 
  margin:0px; 
  /* Preserve aspet ratio */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  overflow: hidden;}
  </code></pre>