Forum Replies Created
-
AuthorPosts
-
Sorry, maybe you are working on the stage site…
I’m signing out of my account.
OrianoHi Ismale, sorry, you’re right, it works now.
I will do more tests and respond further to update the situation.Best regards, and thanks to all Enfold.
OrianoHi Ismael,
I saw that the code “// redirect to autore page” was inserted in the child function, but it doesn’t seem to work, the link assigned to the author’s name always refers to the product and not to the author page :(Is there something I’m doing wrong?
Best regards,
OrianoGood morning Mike,
and thanks for your help.I presented your solution to the “publishing house” in question, but the director of the publishing house insists on the request to have the author’s name linked to the author page (where all the volumes written by the author appear).
I told him it’s not possible, but he tells me that he saw a WordPress / WooCommerce site, which has what he’s looking for.
I asked him for the URL of this site, and he said he will give it to me.
In case it is of any use, as soon as I have the URL of this site I will write it here.Best regards,
OrianoHello Mike,
and, importantly, the link of the author’s name should direct to the author page..
Example, the link on the author name “Raimondo Maria Pavarin” should open his author page:
https://bibliotecaclueb.it/clueb-stage/libreria/autore/pavarin-raimondo-maria/Best regards,
OrianoHi Mike,
Would it be possible to eliminate the word “Author”?
And also, would it be possible to move the author’s name below the title? (Between the title and the price).Best regards,
OrianoHi mike,
yes I have a staging site.
Find in Private content you account.Hi Guenni007,
thanks for the help and suggestions.
I will also do some tests, following your instructions.Best regards,
OrianoHi Guenni007
humm… interesting, even if not easy to implement.Maybe it could be a good solution, at least on small sites, with a limited amount of content.
Do you have a online demo site on which you have implemented this solution?
And how to have a button (switch skin) with icons night/sun?Best regards,
OrianoHi Ismael, thanks for the reply.
PS: I made this request to you, because a client asked me to have this option on the site I proposed to him (naturally based on Enfold), and before installing a specific plugin (and I prefer to use Enfold precisely because it allows me to create sites almost without having to use additional plugins…), I wanted to hear your opinion :)
Best regards,
OrianoHi Ismail,
thank you for the advice.Honestly, I would prefer to have the DarkMode Switch integrated into the theme. And since I use Enfold as my favorite theme for the sites I create and manage… well… you can imagine ☺️
So please,
consider this option, and if possible, keep us informed about your development decisions, so that we, professional users of your theme, can know whether or not to offer this option to our customers.Best regards,
OrianoJuly 21, 2023 at 8:25 am in reply to: Problem spam email from contact form Efold (even after I deleted the form) #1413909Hi Mike, thanks for your help.
Now i will never forget that:
> hiding it visually doesn’t hide it from bots which searchs the page source code.
😳Sure you can close this ticket.
Best regards
o.July 20, 2023 at 9:44 pm in reply to: Problem spam email from contact form Efold (even after I deleted the form) #1413867Hi Mike,
I understood the problem.
A month ago on the site in question I started using GravityForms instead of the Contact Form Enfold. But instead of deleting the Contact Form Enfold I hid it using the “Advanced / Responsive / Element Visibility”.
In this way the Contact Form Enfold while not visible from the front end, but the Enfold Contact Form that I had hidden, kept receiving messages and sending notifications :(
Now I have eliminated the Contact Form Enfold, and the problem of spam emails sent from the site is solved.Are you aware of this situation? I have been using Enfold for many years and in many sites, but I had never noticed this strange behavior. :(
Best regards
OrianoJuly 17, 2023 at 1:47 pm in reply to: Problem spam email from contact form Efold (even after I deleted the form) #1413497Dear Enfold staff
I’ll try to summarize my question:
is it normal for Enfold to send emails starting from an Enfold Form inserted in an old version of the page?In my many years of using Enfold, this is the first time this has happened to me :(
Best regards
OrianoJuly 17, 2023 at 8:35 am in reply to: Problem spam email from contact form Efold (even after I deleted the form) #1413454I stopped using the “Contact Form Enfold”, but Enfold keeps sending emails from a Contact Form Enfold that I can’t find :(
Please help.
Best regards
OrianoHere an attach “Event” from Easy WP SMTP:
= = = = = =
Theme: Enfold
/home/associationfranc/public_html/wp-content/themes/enfold/framework/php/class-form-generator.php (line: 1463)
Backtrace:
[0] wp_mail called at [/home/associationfranc/public_html/wp-content/themes/enfold/framework/php/class-form-generator.php:1463]
[1] avia_form->send called at [/home/associationfranc/public_html/wp-content/themes/enfold/framework/php/class-form-generator.php:450]
[2] avia_form->display_form called at [/home/associationfranc/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/contact/contact.php:1011]
[3] avia_sc_contact->shortcode_handler called at [/home/associationfranc/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php:1332]
[4] aviaShortcodeTemplate->shortcode_handler_prepare called at [/home/associationfranc/public_html/wp-includes/shortcodes.php:355]
[5] do_shortcode_tag called at [:]
[6] preg_replace_callback called at [/home/associationfranc/public_html/wp-includes/shortcodes.php:227]
[7] do_shortcode called at [/home/associationfranc/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php:559]
[8] ShortcodeHelper::avia_remove_autop called at [/home/associationfranc/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/grid_row/cell.php:788]
[9] avia_sc_cell->shortcode_handler called at [/home/associationfranc/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php:1332]
[10] aviaShortcodeTemplate->shortcode_handler_prepare called at [/home/associationfranc/public_html/wp-includes/shortcodes.php:355]
[11] do_shortcode_tag called at [:]
[12] preg_replace_callback called at [/home/associationfranc/public_html/wp-includes/shortcodes.php:227]
[13] do_shortcode called at [/home/associationfranc/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php:559]
[14] ShortcodeHelper::avia_remove_autop called at [/home/associationfranc/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/grid_row/grid_row.php:712]
[15] avia_sc_grid_row->shortcode_handler called at [/home/associationfranc/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php:1332]
[16] aviaShortcodeTemplate->shortcode_handler_prepare called at [/home/associationfranc/public_html/wp-includes/shortcodes.php:355]
[17] do_shortcode_tag called at [:]
[18] preg_replace_callback called at [/home/associationfranc/public_html/wp-includes/shortcodes.php:227]
[19] do_shortcode called at [/home/associationfranc/public_html/wp-includes/class-wp-hook.php:308]
[20] WP_Hook->apply_filters called at [/home/associationfranc/public_html/wp-includes/plugin.php:205]
[21] apply_filters called at [/home/associationfranc/public_html/wp-content/themes/enfold/template-builder.php:102]
[22] include called at [/home/associationfranc/public_html/wp-includes/template-loader.php:106]
[23] require_once called at [/home/associationfranc/public_html/wp-blog-header.php:19]
[24] require called at [/home/associationfranc/public_html/index.php:17]oops… I humbly apologize, it’s me who is bugged :(
I forgot to select the Lock “Content” button.The amazing feature of the Content Item works perfectly.
I hope I haven’t wasted anyone’s time. :(
Best regards
OrianoHi, I just checked my other sites (all with Enfold), and all of them have the same problem: all changes made in Custom Elements are not reflected in occurrences of the same elements inserted in pages or posts or portfolio items. :(
Please, can you check?
Best regards
OrianoHi Yigit,
thank you, your css does exactly what I needed.Best regards
OrianoYes, 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
Oriano -
AuthorPosts