Jump to content

tuanphan

Circle Member
  • Posts

    65,544
  • Joined

  • Last visited

  • Days Won

    521

Posts posted by tuanphan

  1. On 5/2/2024 at 2:16 AM, danim said:

    Yes!

    I able to fix the "Complete and Continue". I just need the "Start Course" and "Lessons" Changed to "Start Guide" and "Topics". 

    Thank you!

    Use this code to Code Injection > Footer or Page Header Code Injection

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
    <script>
    $(document).ready(function(){
        $("span.course-item__course-action-button-text.course-item__course-action-button-text--active").html(function() { 
              return $(this).html().replace("Start Course", "Start Guide");  
        });
          $("span").html(function() { 
              return $(this).html().replace("Lessons", "Topics");  
        });
    });
    </script>

     

  2. On 5/11/2024 at 1:12 AM, Belizabeth said:

    Because the site is live, I did a temporary fix by removing the bullet lists and manually adding hyphens before each word. However, I do not like that I can't add a space after each word. Does it need to be bulleted for code to fix it? Thank you again!

    I think it needs code, because List have a left padding in default (this is default on all platforms), we need to remove it with code.

  3. 6 hours ago, MatthiasHoegg said:

    @tuanphanthat’s the one I want to lock the proportions of, or not crop as much, yes. Thanks for looking into it 🙏🙏

    You can use this code to Website > Website Tools > Custom CSS

    @media screen and (max-width:640px) {
    body.homepage .page-banner-wrapper.page-banner-has-video {
        height: 30vh !important;
    }
    }

     

  4. 15 hours ago, Ameer410 said:

    I mean this one just above it:

    image.thumb.png.4a43ddb59c2ce35127ac621f1f4f0d51.png

    (1) You can create a Not Linked Page with Name/URL: Blog CTA - /blog-cta

    and design layout

    (2) Install Section Loader Supreme Plugin

    (3) Add this code to Blog Post Item Code Injection

    <div data-wm-plugin="load" data-target="/blog-cta"></div>

    image.thumb.png.0f361472f20062d010a2f3d361ef6f66.png

    (4) Add this code to Website > Website Tools > Code Injection > Footer (under #2 plugin code)

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
    <script>
    document.addEventListener('wmSectionLoader:loaded', ({detail}) => {
      if (detail.target !== '/blog-cta') return;
      $('div.wm-load-container').insertBefore('body[class*="type-blog"].view-item footer.sections');
    })
    </script>
    <style>
    .wm-load-container+section {
        padding-top: 0px !important;
    }
    </style>

    (5) In case you don't have a budget to buy plugin. You can let me know, I will give another guide to do this by use Section in Footer.

  5. On 5/10/2024 at 10:28 PM, ceesay said:

    Could you try testing with the video block within the additional info?  https://www.openmotoadv.com/accessories/p/rack01 

    Thank you!!

    You can add a Code Block under Video Block > Paste this code

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
    <script>
     jQuery(document).ready(function($){
      $('section.ProductItem-additional .video-block').insertBefore('article>section:first-child');
    });
    </script>
    <style>
    .video-block video {
        object-fit: cover !important;
    }
    
    .plyr__poster {
        background-size: cover !important;
    }
    
    .video-block+section {
        padding-top: 10px !important;
    }
    .video-block {
        padding: 0px !important;
    }
    </style>

    image.thumb.png.76b29e02848c391e4be8374551fb4c8b.png

  6. On 5/10/2024 at 8:01 PM, lamdra said:

    @tuanphan awesome, thank you so much. The page I'm testing this on is here:

    https://www.jaguarbolera.com/menus

    I like the idea of using sections instead of menu blocks to have more control over the layouts. But the active state would be helpful feature.

    Change this code

    <script>
    $(document).ready(function() {
      // do not remove this code
    $('section.page-section').each(function(){
        var layclass = $(this).find('.code-block .cbsc').attr('class');
        console.log(layclass);
        $(this).addClass(layclass);
    });
      // for asia section, you can change it
      $('a[href="#main"]').click(function(){
          $('.main-section').addClass('show-section').removeClass('hide-section');
        $('section.cbsc:not(.main-section)').removeClass('show-section').addClass('hide-section');
      });
      // for eu section, you can change it
      $('a[href="#brunch"]').click(function(){
          $('.brunch-section').addClass('show-section').removeClass('hide-section');
        $('section.cbsc:not(.brunch-section)').removeClass('show-section').addClass('hide-section');   
      });
     // for us section, you can change it     
      $('a[href="#dessert"]').click(function(){
          $('.dessert-section').addClass('show-section').removeClass('hide-section');
        $('section.cbsc:not(.dessert-section)').removeClass('show-section').addClass('hide-section');  
      });
        // for africa section, you can change it  
        $('a[href="#drinks"]').click(function(){
          $('.drinks-section').addClass('show-section').removeClass('hide-section');
        $('section.cbsc:not(.drinks-section)').removeClass('show-section').addClass('hide-section');
      });
       // for australia section, you can change it
       $('a[href="#australia"]').click(function(){
          $('.australia-section').addClass('show-section').removeClass('hide-section');
        $('section.cbsc:not(.australia-section)').removeClass('show-section').addClass('hide-section');  
    });
    });
    </script>

    to this

    <script>
    $(document).ready(function() {
      // do not remove this code
    $('section.page-section').each(function(){
        var layclass = $(this).find('.code-block .cbsc').attr('class');
        console.log(layclass);
        $(this).addClass(layclass);
    });
      // for asia section, you can change it
      $('a[href="#main"]').click(function(){
          $('.main-section').addClass('show-section').removeClass('hide-section');
        $('section.cbsc:not(.main-section)').removeClass('show-section').addClass('hide-section');
         $(this).addClass('change-button-style');
        $('a:not([href="#main"])').removeClass('change-button-style');
      });
      // for eu section, you can change it
      $('a[href="#brunch"]').click(function(){
          $('.brunch-section').addClass('show-section').removeClass('hide-section');
        $('section.cbsc:not(.brunch-section)').removeClass('show-section').addClass('hide-section');   
         $(this).addClass('change-button-style');
        $('a:not([href="#brunch"])').removeClass('change-button-style');
      });
     // for us section, you can change it     
      $('a[href="#dessert"]').click(function(){
          $('.dessert-section').addClass('show-section').removeClass('hide-section');
        $('section.cbsc:not(.dessert-section)').removeClass('show-section').addClass('hide-section');  
         $(this).addClass('change-button-style');
        $('a:not([href="#dessert"])').removeClass('change-button-style');
      });
        // for africa section, you can change it  
        $('a[href="#drinks"]').click(function(){
          $('.drinks-section').addClass('show-section').removeClass('hide-section');
        $('section.cbsc:not(.drinks-section)').removeClass('show-section').addClass('hide-section');
           $(this).addClass('change-button-style');
        $('a:not([href="#drinks"])').removeClass('change-button-style');
      });
       // for australia section, you can change it
       $('a[href="#australia"]').click(function(){
          $('.australia-section').addClass('show-section').removeClass('hide-section');
        $('section.cbsc:not(.australia-section)').removeClass('show-section').addClass('hide-section');  
          $(this).addClass('change-button-style');
        $('a:not([href="#australia"])').removeClass('change-button-style');
    });
    });
    </script>
    <style>
      a.change-button-style {
        background-color: #fff !important;
        color: #5b4d21 !important;
    }
    </style>

    image.thumb.png.2c893f90a7495dab28983c2a5b9deb64.png

  7. On 5/10/2024 at 10:46 PM, 1000Watts said:

    Password is IRIS.  Thank you!

    You can use this code to Website > Website Tools > Code Injection > Footer

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
    <script>
    $(document).ready(function(){
        $("a#site-title").each(function() {
        $(this).html($(this).html().replace(/ASC/g, "<span>ASC</span>"));
    });
    });
    </script>
    <style>
      a#site-title span {
        font-size: 14px;
    }
    </style>

    image.png.5fc9eecdc715ea83756e1c7ef19877f8.png

  8. On 5/10/2024 at 3:39 PM, WilsonTSmith said:

    Yeah, I actually don't know how/why that changed! But unfortunately now it's present before every blog post, not just the first landing page -- is there a way to only get one as a page header, but not on each post?

    Thanks for all your help!

    Remove this code from Page Header or Code Injection

    image.png.7656e6bcc4acbaff967fc2881529b3eb.png

    and add this new code to Website > Website Tools > Custom CSS

    body#collection-5ecc68a1e3d0ce7bf222b572 h1.entry-title:before {
        content: "After his sudden passing in May 2013, I’ve been occasionally collecting stories and (re)discovering the dance/theatre work of my father, Henry Clay Smith, and his company Solaris Dance-Theatre. Intermingled are my own stories and reflections on/through grief.";
        display: block;
        font-size: 16px;
    }

     

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