Jump to content

heyawaiszahid

Circle Member
  • Posts

    37
  • Joined

  • Last visited

Community Answers

  1. heyawaiszahid's post in Fundraiser button on header was marked as the answer   
    For those reading this post on a later date, below is the updated code that works flawlessly.
    <script> let donateBtn = document.createElement("button"); donateBtn.setAttribute("type", "button"); donateBtn.setAttribute("data-formId", "14580"); donateBtn.style.display = "none"; document.body.appendChild(donateBtn); let handleClick = (e) => (e.preventDefault(), donateBtn.click()); document.querySelector(".header-menu-cta a")?.addEventListener("click", handleClick); document.querySelector(".header-actions-action a")?.addEventListener("click", handleClick); document.querySelector("#block-yui_3_17_2_1_1718382999031_11811 a")?.addEventListener("click", handleClick); </script>  
  2. heyawaiszahid's post in Gallery Slideshow — removing image hover effects was marked as the answer   
    @undefined In my opinion, the simplest approach is to exclude the homepage from your global code, as shown below. While this solution isn't perfect and has some drawbacks, it's the cleanest approach for your current requirements.
    body:not(.homepage) { a:link img { opacity: 1; } a:hover img { opacity: 0.5; } }  
  3. heyawaiszahid's post in Widget Code putting it in a container was marked as the answer   
    @allie00p We always need to ensure we use the correct ID for the block. It appears you deleted the old block, which is okay. Now, we just need to update the ID with that of our new code block. Here's the revised version:
    #block-yui_3_17_2_1_1721324851715_19622 { iframe { border: 0; min-height: 860px; } }  
  4. heyawaiszahid's post in Put title below description testimonial slider was marked as the answer   
    Add below code into the Custom CSS of your website.
    [data-section-id="6686a8a4c94e2c3610000a29"] {     .slide-content {         display: flex;         flex-direction: column;         h2 {             order: 2;         }     } }
×
×
  • 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.