Jump to content

dariokomazec

Circle Member
  • Posts

    36
  • Joined

  • Last visited

Posts posted by dariokomazec

  1. Hi,

    I'm not good at coding so any help will be appreciated.

    I want to change the default SEARCH link to external one and I have done this successfully with this code below but the problem is I don't know how to force it to open in a new tab. I have tried adding the target= "_blank" to the code but as I already said I'm not good at this so no luck, I don't know how to do this...

    <script>
      
      $(document).ready(function() { 
        $('a[href="/search"]').attr('href','https://www.google.com/');
    	});
      
    </script>

    So I need help with this code above, code is 100% working I only want to open the https://www.google.com/ in the new tab...

    Thanks

  2. Hi,

    Unfortunately no, I have figured out that this background is not "mobile bar background".

    If you set mobile bar background color to transparent this gap will stay as empty gap and taking the background from body. 

    Only way that I have found to remove this gap is to bring content up with css:

    .Index-gallery {
    margin-top: -80px !important;
    }

    You can't have page content behind Mobile bar as I have planed, it starts below by default and I can't find better way to correct this...

     

    If you find better way please let me know...

  3. I have solved the problem:

    1. Add social icons to Footer

    2. in Styles make Search Icon visable and then hide it with CSS  .Icon--search {display: none}

    3. Add this code below to site header code injection and change #block-1fb5bb40728e7dd45230 to your own social icons block ID.

    that's it.

    <script src="https://code.jquery.com/jquery-3.5.1.min.js" ></script>
    <script>
      jQuery(document).ready(function($) {
    $('#block-1fb5bb40728e7dd45230').insertAfter('.Icon--search');
    });
    </script>

     

    Screen Shot 2021-12-29 at 11.15.30.jpg

  4. here is the website:

    https://megalodon-capybera-w4p6.squarespace.com/ 

    password: 12345 

     

    This is the code that I have used to bring social icons from footer to header and this is what I want but the problem is that it always stays fixed and I want to behave like the heather on scroll...

    #block-1fb5bb40728e7dd45230{
       position: fixed !important;
      z-index: 999;
        top: 10px !important;
      right: 10px !important;
      padding-top: 10px !important;
        width: 100% !important;
        height: 100% !important;
     }

     

  5. Hi,

    I'm working on a new website and I want something like on this image attached with hamburger Menu but when I do this social Icons disappear but I need them on the right. 

    Can someone help me, how can I force mobile icons to be visible on mobile.

    I have tried to bring them up from footer but I'm not so good with coding. Only what I have achieved was to bring it up with this code but it stays always visible when I scroll down.

    #block-yui_3_17_2_1_1640688529513_1878{
     
       position: fixed !important;
      max-width: 150px !important;
        top: 10px !important;
      right: 10px !important;
      padding-top: 50px !important;
        width: 100% !important;
        height: 100% !important;
     }

     

    Screen Shot 2021-11-16 at 20.20.43.jpg

  6. Hi,

    only thing I can come up with right now is this:

    1. Put the page (page that you want to be linked with folder title) on the first place in to the folder.

    2. Paste this code to "Custom CSS" and change only child number "3" to target specific folder that you want in your navigation menu.

    .Header-nav div>:nth-child(3) {.Header-nav-folder :nth-child(1) {display: none !important;}}

     This works on Brine Family (TESTED) and few more I think but I haven't tested on others...

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