Jump to content

SmartGirl

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by SmartGirl

  1. Site URL: https://www.madisonavemedia.com/link-in-bio

    Hello there! Hoping someone can provide the aha information I'm missing. Working on a cover page that's being used as a Link in Bio page. Previous coder on the project added code with script to allow for an extra button to be added, which is operating fine, but it is stacking the buttons side-by-side horizontally instead of vertically. Can anyone tell me how to modify the code to make that happen? 

    Thanks in advance! 

    Current code: 

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"> 
    </script>

    <li id="button2">
      <a href="https://www.madisonavemedia.com">
        Website
      </a>
    </li>

    $( "#button2" ).appendTo( $( "ul" ) );
    $( "#button3" ).appendTo( $( "#button2" ) );

    <script>
      $( document ).ready(function() {
        $( "#button1" ).appendTo( $( "ul" ) );
        $( "#button2" ).appendTo( $( "ul" ) );
        $( "#button3" ).appendTo( $( "#button2" ) );
      });
    </script>

    <style>
      .sqs-slide-wrapper[data-slide-type="cover-page"] .responsive-wrapper.stacked [data-slice-type="buttons"] ul li a, .sqs-slide-wrapper[data-slide-type="cover-page"] .responsive-wrapper.stacked [data-slice-type="navigation"] ul li a {
        margin-bottom:15px;  
    }
    </style>

    Screen Shot 2022-01-04 at 12.09.32 AM.png

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