WordPress can’t use ZipArchive

I successfully created zip file in root folder of WordPress using following code: $files = array(__DIR__.’/test.jpg’, __DIR__.’/screenshot.png’); $zipname=”images.zip”; $zip = new ZipArchive; $zip->open($zipname, ZipArchive::CREATE) or die(‘ cant open ‘); foreach ($files as $file) { if( $zip->addFile($file)){ echo “<br>$file Added To Zip Sucessfully”; }else { echo “<br>Can not add $file file”; } } $zip->close(); if(file_exists($zipname)){ echo … Read more

How do I use an iFrame for my header in WordPress twenty seventeen?

This is possible, but it’s not a best practice. Animations are cool, but iframes add complications and slow down the page load speed. If you want to see what it looks like, edit this file: ../wp-content/themes/twentyseventeen/template-parts/header/header-image.php And change the custom header div to this: <div class=”custom-header”> <iframe scrolling=”no” width=”100%” height=”1000px” src=”http://robinseggstudio.com/homePage_12-5c/RobinSketch/”></iframe> </div><!– .custom-header –>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)