Forum Replies Created
-
AuthorPosts
-
Yes, yes, yes, Mike.
Thank you very much. I do not know how to thank you 👏👏
And I am also a little ashamed for having bored you with this problem on Sunday.Best regards,
OrianoHi Mike,
I’m preparing an installation copy of the site in production. It will be ready tomorrow.
As soon as I’m ready, I’ll write the admin login in the Private Content area.Best regards
OrianoHi Mike,
sorry, but I am on local MAMP :(If you think it’s useful, I can prepare tomorrow an online clone of the production site.
Oriano
Hi Mike
i tried with:
> echo ‘<p> di : ‘ . $value . ‘</p>’;
and it doesn’t change anything, and I don’t even get error :(Best regards
OrianoHi Mike,
> Try changing the di in the function that gets the label
I have try, and I get the following error:
Parse error: syntax error, unexpected ‘di’ (T_STRING), expecting ‘;’ or ‘,’ in /Volumes/T7/sitimamp/clueb/wp-content/themes/enfold-child/functions.php on line 103and on line 103, I have this:
echo '<p>' di ': ' . $value . '</p>';
Best regards
OrianoHi Mike,
the problem is that the term “Autore” should remain in the Product Attribute, while under the title, where, thanks to your code the attribute appears, the term “Autore” should be replaced with the word “di“, see image .
I tried to use the “after” css, but failed :(Best regards
OrianoHi Mike,
thank you so much for your help and explanations.I hope our exchanges can be useful to other Enfold users.
Best regards,
OrianoEnfold x ever
Hi Mike,
Your latest version of the function seems to me to work correctly.
The only correction needed is the order of appearance of the two Attributes, which in the frontend must be: Titolo/Autore/Contributore (while now it’s Title/Contributor/Author).I reversed the order of the two attributes in the function, as you see below. Does this seem correct to you?
function add_autore_and_curatore_attributes_after_title() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ $('.shop_attributes .woocommerce-product-attributes-item--attribute_pa_curatore').each(function() { $(this).clone().wrapInner('<p class="pa-curatore"/>').children(0).unwrap().insertAfter('.single-product-summary .product_title').css({'margin':'0'}); $('.pa-curatore .woocommerce-product-attributes-item__label').wrapInner('<p class="curatore-label"/>').children(0).unwrap().css({'display':'inline-block','margin':'0'}); $('.pa-curatore .woocommerce-product-attributes-item__value').wrapInner('<p class="curatore-value"/>').children(0).unwrap().css({'display':'inline-block','margin':'0'}); $('.pa-curatore .curatore-value p').css({'margin':'0'}); }); $('.shop_attributes .woocommerce-product-attributes-item--attribute_pa_autore').each(function() { $(this).clone().wrapInner('<p class="pa-autore"/>').children(0).unwrap().insertAfter('.single-product-summary .product_title').css({'margin':'0'}); $('.pa-autore .woocommerce-product-attributes-item__label').wrapInner('<p class="autore-label"/>').children(0).unwrap().css({'display':'inline-block','margin':'0'}); $('.pa-autore .woocommerce-product-attributes-item__value').wrapInner('<p class="autore-value"/>').children(0).unwrap().css({'display':'inline-block','margin':'0'}); $('.pa-autore .autore-value p').css({'margin':'0'}); }); })(jQuery); }); </script> <?php } add_action('wp_footer', 'add_autore_and_curatore_attributes_after_title');
Hi Mike
I’m trying to put attributes under the title.
Seems like the best solution, although I haven’t found the good formatting solution, as sometimes a book has only the author, sometimes only the publisher, and sometimes both :(
Perhaps, via the function, one could assign a DIV that contains the two attributes? Would this allow better control of the formatting of the Attributes area? But I wouldn’t know how to do it.Best regards
OrianoHi Mike,
I just realized now that the two attributes appear only if the “Product short description” field contains text.
On the other hand, if the “Product short description” field does not contain text, the two attributes do not appear :(Best regards
OrianoHi Mike
the second attribute is “Curatore”.
See Private content for test url.Best regards
OrianoHi Mike
I’m still here…Would it be possible to add a second Attribute?
Example add also the attribute Curator?Best regards
OrianoHi Mike,
Thank you very much for your help.I do not exclude returning to this ticket for further implementations on this Enfold Bookshop.
But for now I’ll stop here and propose these changes to my client, who I think will be satisfied.Best regards,
OrianoEnfold x ever
Hi Mike
now it’s almost perfect.One last detail.
I saw that I can edit the “.pa-author” css, and this is great.
But since book authors are fussy… we should add a colon after the word “Author”.
To obtain:
Author: Name SurnamePost scriptum: I hope this will also be useful for an upcoming demo of Enfold “Bookshop”
Best regards
OrianoHi Mike, thanks for your help.
Now the author name is also displayed below the short description.
But it would be necessary that the author’s name to be linked to its “author page”, as is the case with the author’s name appearing in the additional information:
It can be done? 😳
Best regards
OrianoHi Ismael,
> You may need to set the Enfold > Shop Options > Product Gallery settings to the second option (Woocommerce 3.0 gallery).
thank you. Perfect 👍Best regards,
Oriano
⇢ Enfold for ever.Hi Mike, thanks for your help.
but if I only want to display the “Autore” attribute?How must change this code:
function cw_woo_attribute(){ global $product; $attributes = $product->get_attributes(); if ( ! $attributes ) { return; }
Best regards,
OrianoHi Mike, i’m working in a local Mamp clone of the site?
Find in “Private content” the URL of thr site in production.Best regards
OrianoHi Nikko, thanks for answer.
PS: Sorry, but I hadn’t seen Yigit’s post…Best regards
OrianoI apologize, but unfortunately I can’t reproduce the error continuously either :(
I created a new admin account, then deactivated the plugins and this way the error disappeared.
Then I started activating the plugins, and from time to time the error appears and sometimes disappears…
I could not determine if the cause of the error is a specific plugin.Could it be a server-side permissions issue?
I also asked the hosting support, I hope they answer me.Sorry for bothering you unnecessarily with this unreproducible problem :(
Best regards
OrianoThanks Yigit, thanks Guenni007, for your help.
I am testing in the MAMP local version of the site.Best regards
OrianoNovember 6, 2022 at 6:27 pm in reply to: The "Image Full Width" block does not work correctly #1371546Hi Mike, thanks for your help.
It seems to me that your code is working correctly 👍.
Now we can use the “Block Image Full Wide” and “Block Image AlignWidth” on the blog post edit with WordPress block editor.Thanks Enfold, thanks to all the support staff. 👏
Best regads
OrianoNovember 2, 2022 at 8:57 am in reply to: The "Image Full Width" block does not work correctly #1371020Hi Ismael
your code for the “Block Image Full Wide” now seems to work correctly.
Thank you.Can I also ask you for the code to be able to use the “Block Image Align Width” correctly?
For the “Block Image AlignWidth” I inserted this css:
/* Align Width Image */ .wp-block-image.alignwide img, .wp-block-image.alignwide img { height: auto; width: 80vw; max-width: none; left: 50%; position: absolute; transform: translateX(-50%); }
This changes the size of the image, but does not eliminate the overlap with the content that follows the image :(
Please see this Post, where the first image is FullWidht, the second image is “Normal” and the third image is “AlignWidth”.
PS: I believe that allowing proper use of the WordPress Block Editor in blog posts can be very useful for Enfold Theme.
Best regards
OrianoNovember 1, 2022 at 10:52 pm in reply to: The "Image Full Width" block does not work correctly #1370992Hi Ismael, thank for help.
I have installed your code on a demo site.
1) On this post, the image is with Image Block “Full width”.
2) On this post (a duplicate of the previous post), the image is with Image Block “None” allignement.
As you can see, the full width image overlaps the content that follows.Best regards
OrianoOctober 31, 2022 at 8:15 pm in reply to: The "Image Full Width" block does not work correctly #1370858Hi Rikard, thank you very much.
Hope this ticket can remain open, awaiting the response from your developers.
Best regards,
OrianoOctober 31, 2022 at 5:43 pm in reply to: The "Image Full Width" block does not work correctly #1370830Hi Rikard
Please watch this video.
You will see how to add two images in a Post using the Block Editor.
The first image with “None” allignement,
the second image with “Full Width” allignement.Then if I view the page on Enfold, there is no difference between the two images :(
If instead I view the Post with a WordPress default theme, you can see that the two images are exactly as I edited them in the Post:
the first image is normal, the second is Full Width.I hope I have explained the problem :(
Best regards
OrianoOctober 31, 2022 at 12:46 pm in reply to: The "Image Full Width" block does not work correctly #1370793Hi Rikard, thanks for answer
Are you using the default WordPress block editor to create your post? If
Yes, I use WordPress block editor to edit this post (see image)
We don’t provide support for that editor though, so it might be better if you post this question on a general WordPress support forum.
well … it’s not nice of you (kriesi) not to consider compatibility with “WordPress block editor” … :(
The Image Full Width block works correctly in almost all the themes I have used (both pro and free themes).
Enfold is my main theme (I’m using 11 licenses), and it’s a big handicap that important Blocks, like “Full Image” on blog Post, don’t work properly.
I can’t ask WordPress.org, to fix a problem that seems to me to be from Enfold :(I believe it is in Enfold’s interest to make this WordPress Block usable in Post.
Best regards
OrianoHi Mike.
Thanks for your explanations and for your suggestion.Best regards
OrianoSeptember 23, 2022 at 10:46 am in reply to: WooCommerce product img cropped on default shop page, after Enfold Update #1366084Hi Ismael,
Yes I use your filter and it seems to work, Thanks.
Hope this bug will be fix with the next Enfold update?
Best regards, and thank for Enfold theme :)
OrianoSeptember 22, 2022 at 11:47 am in reply to: WooCommerce product img cropped on default shop page, after Enfold Update #1365970Hi Ismael, I have tried your workaround and it seems to work, Thanks.
But now my question is:
this bug will be fix with the next Enfold update?
I ask this to avoid that on the occasion of the next Enfold update this workaround code can create new conflicts.
What is your opinion?Best regards
Oriano -
AuthorPosts