Jump to content

shadiadiph

Members
  • Posts

    955
  • Joined

  • Last visited

Everything posted by shadiadiph

  1. Hi I just noticed a major issue with my site i had lot so of images that were not showing in wordpress as they had a .JPG file extension. I fixed them all and tried to write a normal .htaccess Redirect 301 / from the uppercase img to the lower case now I am getting lots of 404 errors from certain backlinks. How can I make a rewrite ".JPG" to ".jpg" in a url in .htaccess been trying for an hour now can not seem to find the answer. Any help would be appreciated.
  2. Hi I am baffled. I am trying to modify some html using $dom = new DOMDocument(); $dom->preserveWhiteSpace = true; $dom->loadHTML($html); $html = $dom->saveHTML(); return $html; I have my functions already worked out the above is what I have narrowed the error down to, all the rest of my code works probelm is when it loads html and saves html it seems to change this. prevText: '<i class="fa fa-chevron-left"></i>', nextText: '<i class="fa fa-chevron-right"></i>', to this prevText: '<i class="fa fa-chevron-left">', nextText: '<i class="fa fa-chevron-right">', The rest of the document is fine just this portion changes and messes everything up. The above code is javascript embedded into the code from somewhere it is a wordpress plugin. When I remove the new DOMDocument(); code it works fine. All the other stuff I am doing is working fine, just wondering is there anyway to fix it so it does not remove the tags. Thanks in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.