farlington
Forum Replies Created
-
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Consent is blocked in WooCommerce siteLook like consent for EU requires a paid for license especially since Google have tightened consent controls in Spring 2024.
Thanks for the quick reply.
Could development consider this again please for general release. The general advice is to get customers to agree terms & conditions at the point of sale – so improving the checkout experience is great but do it without sacrificing commercial common sense.
There are still major advantages to using an express check out even if a tick box is required to agree the T&Cs. As an example the UK Royal Mail ‘Click and Drop’ service requires customers to agree to not sending banned items but then allows them to complete checkout in one click via GooglePay.
Thanks
Forum: Themes and Templates
In reply to: [Virtue] How do you now edit the icon for a menu?Sorry would rather not add the site due to linkages being made.
Here is a code snippet of part of the menu:
<div class=”widget-1 widget-first footer-widget”><aside id=”nav_menu-3″ class=”widget widget_nav_menu”><ul id=”menu-footer-menu-2″ class=”menu”><li class=” menu-item-481″><a href=”https://www.mysite.com/ordering/”><i class=”icon-truck”></i><span>Ordering</span></a></li><li class=” menu-item-6920″><a href=”https://www.mysite.com/sustainable/”><span>Sustainability</span></a></li></ul>
and chatgpt scarily suggests this as a solution:
You can use JavaScript to search for a specific class, such as
menu-item-6920
, and add a new class to ani
tag within that element. Here is an example of how you can do this:JavaScript
This code is AI-generated. Review and use carefully. Visit our FAQ for more information.Copy
// Find the menu item with the class 'menu-item-6920' var menuItem = document.querySelector('.menu-item-6920'); // Create a new 'i' element var icon = document.createElement('i'); // Add the 'icon-class' class to the new 'i' element icon.classList.add('icon-info'); // Insert the new 'i' element before the first child of the menu item's 'a' element menuItem.querySelector('a').insertBefore(icon, menuItem.querySelector('a').firstChild);
This code finds the menu item with the class?
menu-item-6920
, creates a new?i
?element, adds the?icon-class
?class to the new?i
?element, and inserts the new?i
?element before the first child of the menu item’s?a
?element. You can modify this code to target a different menu item or add a different class to the?i
?tag.This works ??
I suppose what I’m then asking – is this the best work around for menu icons in the theme now?
Thanks
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Static icons not showing on 5.6.2Update 5.7.0 has not restored the icons. Please could this be fixed, thanks so much
Forum: Plugins
In reply to: [Fontsampler] One specific font won’t load name into a new fontsetThanks Johannes,
It would be great if this could be fixed in a future Fontsampler release.
Thanks againForum: Plugins
In reply to: [Fontsampler] One specific font won’t load name into a new fontsetI think it’s a problem with the miltonian file since all other fonts I use work fine.
I created a quick mock up site (available for 7 days only!) with just the above JScript to print to the console and and a text fontsampler with two fonts (arimo: works, miltonian: errors). NB I gave miltonian a name when added to fontsampler.
https://mammoth-sea.jurassic.ninja/sample-page/
User: demo, password: UQKQqeIvqB8FThanks for any more advice
Forum: Plugins
In reply to: [Fontsampler] Fontsampler tester box text colour changes on upgradeThat fixed it. I just needed to save general settings and then all was well. Thanks so much for such a speedy response!
Forum: Plugins
In reply to: [Fontsampler] Fontsampler tester box text colour changes on upgradeHi thanks so much for looking at this (NB back using v0.4.9)
I’ve saved a pdf screenshot of those settings here- This reply was modified 3 years, 8 months ago by farlington.
Ok I now see that you are hiding hidden fields in
woo-custom-product-addons/tags/2.4.4/includes/class-wcpa-order-meta.php
`
if ($wcpa_meta_data_item[‘type’]==’hidden’ ) {
102 $item->update_meta_data(‘_’.$wcpa_meta_data_item[‘label’], $data->value, $data->id);
103 }else{
104 $item->update_meta_data($wcpa_meta_data_item[‘label’], $data->value, $data->id);
105 }
`
Could you please put an option in settings to show hidden fields in emails and order complete page- This reply was modified 4 years, 4 months ago by farlington.
Ok I’ve checked and when I revert to v2.4.3 it works fine and breaks again on reloading v2.4.4
Definitely not related to caching.
Please help!Forum: Plugins
In reply to: [Fontsampler] Set dropdown selectorHi Johannes
That works great but I googled and see that Event.initEvent() is supposedly deprecated. https://stackoverflow.com/questions/2856513/how-can-i-trigger-an-onchange-event-manually
https://developer.mozilla.org/en-US/docs/Web/API/Event/initEventWould this sort of approach work (but couldn’t get it to work)
document.querySelector('.font-lister').dispatchEvent(new Event('change', { 'bubbles': true })):
Thanks again
Forum: Plugins
In reply to: [Fontsampler] Set dropdown selectorHi Johannes
I created a quick test site here to show the concept
https://muddy-mealy.jurassic.ninja/sample-page/a) See the ‘gap’ between line 1 and line 2 text boxes due to the hidden selector. Can this gap be reduced ?
b) If you change the line 3 selector it does set the line two selector to ‘Princess Sofia’ but is doesn’t change the line 2 test box font. I’ve tried trigger attempts in various manners and also as per https://stackoverflow.com/questions/10547622/trigger-change-event-select-using-jquery/10547666
NB I’ve put a debugger statement in the code to allow easy inspection
Thanks!Forum: Themes and Templates
In reply to: [Virtue] Home slider croppingHi Hannah
Thanks that’s super helpful.
On a similar note is there a kadence block (free or premium) that allows a large square background image with a clickable href tag to another url over the whole image area AND text over the image (rather than incorporated as part of the image or below or to the side of the image).
Haven’t found one yet (Kadence info box is close) but do see this on other websites. e.g. homepage of https://www.harrodhorticultural.com/
Thanks againForum: Themes and Templates
In reply to: [Virtue] Top bar and footer are full width and not containedHi Hannah
Thanks again but I suddenly realise that the ‘margin-bottom: -50px;’ has how hidden the yellow header banner (with the search and cart button). Any ideas why this is happening?
ThanksForum: Themes and Templates
In reply to: [Virtue] Top bar and footer are full width and not containedHi Hannah
Almost there – unfortunately I can’t click on the breadcrumb paths.
https://www.hardylabels.com/product-category/bespoke-garden-labels/Thanks