-
Posts
9,361 -
Joined
-
Last visited
-
Days Won
78
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by creedon
-
-
If you want to add thousand separators to your number here is some code.
After the following line...
if (isInViewport(spacerBar) && !window.numbersAnimated) {
...add the following code...
function addThousandsSeparator (n) { // by Thomas Creedon < http://www.tomsWeb.consulting/ > n = String(n); n = n.replace ( /\d(?=(?:\d{3})+(?!\d))/g, '$&,' ); return n; }
The thousand separators code is cribbed from Store Price Change.
Then for any lines like the following.
funds.textContent = Math.floor(curfunds); funds.textContent = fundsNum;
Change them to the following.
funds.textContent = addThousandsSeparator(Math.floor(curfunds)); funds.textContent = addThousandsSeparator(fundsNum);
Let us know how it goes.
-
19 hours ago, kindandbrave said:
When I added the collection to your code, the breadcrumb came back. Any way to resolve?
I suggest putting the code in Store Settings > Advanced > Page Header Code Injection for the store page. Please see per-page code injection.
Wrap the code in a style tag. <style>[code here]</style> Do not include the collection id.
Let us know how it goes.
-
The first issue is it appears you've not followed the first step of the install directions.
-
Install twcsl.
-
-
5 hours ago, TGW said:
So how do I get my header back?
It appears to be there to me.
-
Please see the following.
Let us know how it goes.
-
-
-
-
I suggest contacting the author of the code.
-
-
Quote
There's also a huge space at the bottom of the page which I'm struggling to remove. Any help is really appreciated with this!
Have you tried reducing the number of rows?
-
-
Quote
One strange thing i'm finding when using the live site now is that the code keeps flashing up on the screen whenever a button is clicked. It is only very briefly, but doesn't look good. Is there a reason for this? And any way to fix it?
This indicates the code wasn't installed correctly. It appears the code isn't installed currently. It is impossible to determine what has gone wrong without the code being installed.
-
Quote
This morning, though, I realized it was hiding the first nested item in every category
I have updated my post again. It is version 3 in case this page is stale. Try a refresh if it does appear out of date.
Let us know how it goes.
-
7 hours ago, kathrynnicoledesigns said:
I'm trying to use this piece of code, but the data-folder doesn't seem to work
Please post the URL for a page on your site where we can see your issue.
If your site is not public please set up a site-wide password, if you've not already done so.
Post the password here.
Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works.
Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.
We can then take a look at your issue.
-
Please Contact Customer Support. We can't help with these kinds of back-end issues.
-
If your CSS field looks like the following, starting with an image URL, that is not CSS syntax. That is why you are getting a syntax error on line 1.
The image URLs should be removed.
Also there are syntax errors in the rule-sets. It should look like the following.
#page-title { display : none; } #title-area h1 { display : none !important; }
-
Quote
but now the multi-day is not working.
That was totally my bad. I gave you the wrong code. Here is the right code, hopefully! 🙂
const itemCallbacks = [ cbsdeca, ]; const itemFlyOutCallbacks = [ cbmdefdca, ];
Let us know how it goes.
-
There probably wasn't an answer because no one provided a URL to a product page with variants. Although many of the elements of SS are the same, because SS allows you to add custom code it is critical that folks asking questions provide the URL to the page they are having issues on. That way we can provide the best answer possible, instead of guessing at an answer.
You can try the following. Add the following to Store Settings > Advanced > Page Header Code Injection for the store page. Please see per-page code injection.
<style> .product-details .variant-select-wrapper::after { --size : 0.5rem; height : var( --size ); width : var( --size ); transform-origin : bottom; } </style>
This is for v7.1.
Let us know how it goes.
-
Quote
but that didn't seem to fix the breadcrumb on desktop.
This is what I see (or don't see) when I install the code locally.
I don't see my code installed on your site so it is hard to diagnose something that isn't installed.
-
-
9 hours ago, Zewel said:
But it says Syntax Error on line 1.
Page Settings > Advanced > Page Header Code Injection don't report syntax errors. It sounds like you are talking about Design > Custom CSS.
If I had to guess you've put a <style> tag in Design > Custom CSS. Design > Custom. CSS doesn't understand HTML tags.
-
Please see Store Product Price Zero Remove.
Let us know how it goes.
- Navi and dumitrutira
- 2
-
Quote
CSS code to outfox the template, and create additional gallery pages?
CSS can not make the kinds of changes you want. CSS is to change how things look. It can't be used to change the underlying structure of pages.
QuoteMontauk has limit of 8 gallery pages.
This sounds a bit odd to me. Are you saying you have 8 gallery pages and that you are unable to add any more to the site?
Is it possibly the case that the site is on one of the legacy plans that have a total page limit?
Show only first image in two day event in calendar
in Customize with code
Posted
Please see Calendar Block Event Multiday Class Add.
Above all that code install the following.
Let us know how it goes.