Hello dear I have used digital download theme for my digital sales website. I don’t know how to customize it. Can you help me for that?
]]>Here’s the problem code in the file: digital-download/inc/custom-functions.php
if( ! function_exists( 'digital_download_update_admin_notice' ) ) :
/**
* Updating admin notice on dismiss
*/
function digital_download_update_admin_notice(){
if (!current_user_can('manage_options')) {
exit;
}
// Bail if the nonce doesn't check out
if ( isset( $_GET['digital_download_admin_notice'] ) && $_GET['digital_download_admin_notice'] = '1' && wp_verify_nonce( $_GET['_wpnonce'], 'digital_download_admin_notice' )) {
update_option( 'digital_download_admin_notice', true );
}
}
endif;
add_action( 'admin_init', 'digital_download_update_admin_notice' );
The exit;
there is the problem, it should be doing a return;
Also the logic for that $_GET conditional is broken because it sets the $_GET to ‘1’. You should be doing a ===
check there instead.
Hello,
I am using Digital Download as theme, and I am having problems with the way it displays the download image.
Check below link and scroll down a little:
https://www.lionspratt.com/
The original size of this image is 1800 by 2700 pixels. When I set as “download image” it doesn’t show properly on the website. (Downloads)
When you click to “view” the download, it changes the picture to fit a 759×423 pixels frame that simply ruins my “download image” (which is in portrait mode)
Check link below:
https://www.lionspratt.com/downloads/koi-lesa-prome-edishon-download-test
Unlike the product image that shows perfectly
Check links below (picture should be displayed like this):
https://www.lionspratt.com/product/koi-lesa-1st-edition-papiamentu
(None of the object-fit css styling properties worked)
Anyone explain to me how can I fix this on the homepage and on the download page? (as detailed as possible, so I know where and how exactly to fix it.)
Thank you in advance
]]>