DianaCC
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Virtue] Disable all shipping options (woocommerce)Hi,
Thanks, I did it. I checked “virtual” and “downloadable” in all the products, and then “Only ship to the users billing address”, but you still can see information about the shipping.
In the first step of the purchasing process (check-out), for instance, there is a box under the lable “additional information” and “order notes” (I’m translating it into English, cause I actually have it in Catalan) where it says “order notes, such as special shipping instructions”.
Do you know where I can remove that? Can I edit the code somewhere?
Thank you so much once again…
Diana
Oh, all right! I’ll try to see what’s best then for me…
Thanks again for your help ??
Diana
Forum: Themes and Templates
In reply to: [Virtue] Secondary menu hover effects colorOh, that’s so great!
Thank you so much for your help, Hannah ??
Diana
Oh, thank you so much! That was it ??
Weird… I wonder why they give so much importance to the option of your product images being deliberately cropped (so much, that it is actually the default option). Why should one want that?
Anyway, thanks a lot for your help, lorro ??
DianaI tried it both checked and unchecked, and it still doesn’t work…
Sure, here is a link to one of the cropped images:
https://www.bonport.cat/producte/lexemple-dels-jueus-joan-perez-ventayol/
Thanks ??
Diana
Hi,
Thanks, I installed the Regenerate Thumbnails plugin and I regnerated the thumbnails for these particular images, but it still doesn’t work… I tried deleting the images, uploading them again, finally regenerating thumbnails again, to no avail.
Weird… Do I have to regenerate thumbnails for all images, even those which are not inserted in products?
Thanks again…
DianaForum: Themes and Templates
In reply to: [Virtue] Problems with uploading epub filesI removed that piece of code and… this time it worked! I could finally upload my epub file ??
Thank you so much, Calvin and Kadence, for your help ??
DianaForum: Themes and Templates
In reply to: [Virtue] Problems with uploading epub filesIt worked, thank you so much!
Now I only need to paste the code to allow upload of .epub file extension. I went to functions.php (in my virtue child theme in WordPress Editor) and I pasted it there, but probably not in the right spot cause it didn’t work (it gave a “fatal error”). Here is where I put the piece of code:
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
function addUploadMimes($mimes) {
$mimes = array_merge($mimes, array(
‘epub|mobi’ => ‘application/octet-stream’
));
return $mimes;}
add_filter(‘upload_mimes’, ‘addUploadMimes’);
?>
Isn’t that right? Could you tell me where exactly I should paste it?
Again, thanks a lot…
Diana
Forum: Themes and Templates
In reply to: [Virtue] Problems with uploading epub filesThank you so much, Calvin ??
I almost finished creating a virtue-child theme (after some hours of work… I’m quite unexperienced, as you can see!), but now it appears as a “broken theme” in my themes.
The error message says there is no parent theme… But I followed carefully all the steps (creating the directory, creating the style.css and functions.php files…), so I don’t know where the problem is. How do I indicate that Virtue is the parent of the new child theme?
Maybe there is an error in the style.css or function.php?
Here is the code I included in the style.css:
/*
Theme Name: Virtue Child
Theme URI: https://bonport.cat/virtue-child/
Description: Virtue Child Theme
Author: D.Coromines
Author URI: https://bonport.cat/
Template: Virtue
Version: 2.3.3
License: GNU General Public License v3.0
License URI: https://www.gnu.org/licenses/gpl.html
Tags: responsive-layout, two-columns, one-column, custom-colors, custom-header, custom-menu, featured-images, translation-ready, theme-options, photoblogging
Text Domain: virtue-child
*/And here the code I included in functions.php file so far:
<?phpadd_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
?>
Sorry because this is a bit off-topic (not corresponding to the title -uploading epubs), but thanks to your piece of advice Calvin I realised the first thing to do was to solve the child theme problem…
Diana