Jump to content

creedon

Circle Member
  • Posts

    9,361
  • Joined

  • Last visited

  • Days Won

    78

Posts posted by creedon

  1. 412847361_ScreenShot2022-08-28at11_09_21AM.png.c06e7eb57b66aab3f28ae1c33dc353b9.png

    Please see Calendar Block Event Multiday Class Add.

    Above all that code install the following.

    <style>
    
      .yui3-calendar-day:not( .twc-cbemca-multiday-1 ) .background {
      
        display : none;
        
        }
        
      .yui3-calendar-day:not( .twc-cbemca-multiday-1 ) .background ~ .itemlist {
      
        display : block;
        
        }
        
      .yui3-calendar-day:not( .twc-cbemca-multiday-1 ) .background + .marker {
      
        background-color : unset
        
        }
        
      </style>

    Let us know how it goes.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

    583504463_ScreenShot2022-08-24at3_16_19PM.thumb.png.c1db7ec90589306bb40bfe7293a22832.png

    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;
      
      }

     

  6. 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.

  7. 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.

  8. 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.

    Quote

    Montauk 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?

    1288199824_ScreenShot2022-08-23at2_00_35PM.png.d06da20ac62a5857b646ca9cc9f9cbc4.png

     

    1017266796_ScreenShot2022-08-23at2_03_09PM.png.950f762922ec203e9f5bb9aeb0e37a23.png

    Is it possibly the case that the site is on one of the legacy plans that have a total page limit?

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.