SCH_001 Posted August 11, 2019 Posted August 11, 2019 Hi all, I have found that some of google and facebook pages say "you must have Javascript enabled in your browser to utilize the functionality of this website" Which is not the best of things to tell the public. How can I resolve this / stop this happening? On face books it's only as the type of ad from Facebook wanted me to promote my website showing my a sample of what an ad could be...
BrockleyJohn Posted August 11, 2019 Posted August 11, 2019 You could edit the noscript message and put a paragraph as the beginning with a welcome to the site message, a summary of it or something along those lines... it's in the language file at the bottom // noscript helper define('TEXT_NOSCRIPT', '<p><strong>JavaScript seems to be disabled in your browser.</strong></p><p>You must have JavaScript enabled in your browser to utilize the functionality of this website.<br><a class="alert-link" href="https://www.enable-javascript.com/" target="_blank" rel="nofollow">Click here for instructions on enabling javascript in your browser</a>.</p>'); It wouldn't do any harm to tell people what they're missing with js turned off anyway while you're at it you might want to get rid of "utilize" :shudder: Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x
burt Posted August 11, 2019 Posted August 11, 2019 Turn on Open Graph HT Module. So many things to explore...
BrockleyJohn Posted August 11, 2019 Posted August 11, 2019 12 minutes ago, burt said: Turn on Open Graph HT Module. So many things to explore... is there one for non-product pages now? Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x
SCH_001 Posted August 12, 2019 Author Posted August 12, 2019 Yep already have Product OpenGraph Module in header tags installed. Grepwin only found the script in english/modules/content/header/cm_header_noscript.php so now sitting here trying to work out what to change the test too
burt Posted August 12, 2019 Posted August 12, 2019 16 hours ago, BrockleyJohn said: is there one for non-product pages now? No, I assumed that the link from FB would be to a product page. 17 minutes ago, SCH_001 said: Yep already have Product OpenGraph Module in header tags installed. If you use the OG tester tool ( https://developers.facebook.com/tools/debug/ ), on a product page it should give a lot of useful data, I just tried the Pears on demo Phoenix; I suppose that the OG module should be updated for a sitewide use, as someone on FB might link to your homepage or specials page or something.
SCH_001 Posted August 12, 2019 Author Posted August 12, 2019 Ok so the link preview for specials.php is domain name business name Then the you must have java script stuff and thenog:description You must have JavaScript enabled in your browser to utilize the functionality of this website. Click here for instructions on enabling javascript in your browser. at the top of the report it saysWarnings That Should Be Fixed Inferred Property The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags. Missing Properties The following required properties are missing: og:url, og:type, og:title, og:image, og:description, fb:app_id ---------------------- So I guess this has to do with your comment of " the OG module should be updated for a sitewide use" is this easy to do? Is there anything else I can do to stop the Javascript stuff coming up for the og:descrition?
SCH_001 Posted August 14, 2019 Author Posted August 14, 2019 Hi all, still looking for ideas/ suggestion on this for Frozen CE BS
berkninan Posted January 24, 2020 Posted January 24, 2020 What is noscript tag? As the name implies, we can use noscript to render alternate content. Anything within < noscript>< /noscript> tags will render only when JavaScript is disabled . Users might disable JavaScript for a number of reasons. A handful of people even install browser extensions like NoScript to prevent the browser from running JavaScript. It's better to have the default be non-javascript , and then let a javascript code overwrite with a javascript enabled page.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.