Jump to content

Polivantage

Member
  • Posts

    13
  • Joined

  • Last visited

  1. I solved it. Here is the solution: <!--SEARCH BAR--> <script src="https://code.jquery.com/jquery-3.5.1.js"></script> <script> $(function(){ var getURL = window.location.href; var subString = 'shop'; let searchBlock = $('#block-yui_3_17_2_1_1717927882701_20949').attr('id','').addClass('header-search-bar'); if (getURL.includes(subString)) { $(searchBlock).insertAfter($('.nested-category-title')); $(searchBlock).clone().addClass('mobile-header-search-bar').appendTo($('.header-menu-nav-folder-content')); } else { searchBlock.remove(); } }) </script>
  2. Hi, I need some help with javascript. I want to remove a search bar (in mobile view especially) from my footer. - I (successfully) identify whether the url has shop in it. - then i have an "if" statement that should remove the whole search bar if shop is NOT mentioned in the url. - beforehand i am doing a function to move my search bar into another element on the page. This works well My problem is removing the search bar. <!--SEARCH BAR--> <script src="https://code.jquery.com/jquery-3.5.1.js"></script> <script> var getURL = window.location.href; var subString = 'shop'; $(function(){ let searchBlock = $('#block-yui_3_17_2_1_1717927882701_20949').attr('id','').addClass('header-search-bar'); $(searchBlock).insertAfter($('.nested-category-title')); $(searchBlock).clone().addClass('mobile-header-search-bar').appendTo($('.header-menu-nav-folder-content')); }) if (getURL.includes(subString)) { console.log('The URL contains the string "' + subString + '".'); } else { console.log('The URL does not contain the string "' + subString + '".'); $('#block-yui_3_17_2_1_1717927882701_20949').remove(); } </script> Please help! polivantage.com/shop
  3. I have the same white flashing issue on page change. my background is set to one color everywhere. still every time i navigate to a different page - prolonged white flash. Additionally when images start to load they first fill their space with white. Id rather have it transparent or same as background color. Can someone please help? I'd love some css or java if necessary.
  4. i have the same issue, any solution? also when images load gradually, they first appear white as the image is scanned in, can i change that to 0 opacity?
  5. Yes, like that! that would be amazing. How do I achieve this with css? PS: How do i display my shop categories on mobile within a category? Let's say I am in Shop->Category ; now i have no UI on mobile except for the header and footer, Id like an accessible way to change categories from within a category (on mobile). Why does the category menu disappear when i enter a category?
  6. could someone please help me achieve this? I want the button to gently scroll up to the top of the page, It has to appear when the user no longer sees the header and be sticky.
  7. I also would like to know how to add a button to the shopping cart page, that empties the cart.
  8. I need this too, how do I target that view options button in css?
  9. Same question, I want to display the product category in its own page, and also whenever you see it, let's say in the "all" category. So that I don't have to specify the type of product each time in the name, and it won't look silly when you are in its own category. Preferably with css, not java, can anyone do this? I imagine it isn't hard. I am looking into the solution myself, but alas, I am a noob.
  10. i can't do this via the app either. there is no setting for it, is there some code i can use? please help.
  11. Hi! I have the opposite issue whereby by mobile view is perfect, but i want the desktop view gallery to be smaller. https://www.polivantage.com/583544494043
×
×
  • 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.