-
Posts
13 -
Joined
-
Last visited
Polivantage's Achievements
-
peter_2 reacted to a post in a topic: How to define the default Color Theme Color in 7.1.?
-
tuanphan reacted to a post in a topic: Remove element from all but shop pages with javascript
-
Polivantage reacted to a post in a topic: Remove element from all but shop pages with javascript
-
Remove element from all but shop pages with javascript
Polivantage replied to Polivantage's topic in Other
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> -
Polivantage changed their profile photo
-
Polivantage started following Remove element from all but shop pages with javascript
-
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
-
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.
-
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?
- 6 replies
-
- background
- flash
-
(and 1 more)
Tagged with:
-
Polivantage reacted to a post in a topic: Gallery section: smooth fade in of thumbnails after complete loading
-
Polivantage reacted to a post in a topic: Image fade animation
-
Polivantage reacted to a post in a topic: 7.1 background image lazy loading - how to stop it
-
Polivantage reacted to a post in a topic: How to make a different gallery size on mobile and desktop view
-
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?
-
Polivantage reacted to a post in a topic: [Share] Accordion Block: Useful code
-
I also would like to know how to add a button to the shopping cart page, that empties the cart.
-
Change 'View Options' font on main store page
Polivantage replied to SarahTynes's topic in Customize with code
I need this too, how do I target that view options button in css? -
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.
-
How to define the default Color Theme Color in 7.1.?
Polivantage replied to ArminB's topic in Site Design & Styles
i can't do this via the app either. there is no setting for it, is there some code i can use? please help. -
Polivantage started following tuanphan
-
How to make a different gallery size on mobile and desktop view
Polivantage replied to gadzoe's topic in Images & Videos
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- 23 replies