Createxconform
-
Posts
25 -
Joined
-
Last visited
Reputation Activity
-
Createxconform reacted to tuanphan in Move text or code block from "Additional Info" to "Product page description" product detail excerpt
Edit this code
<script>$('section.ProductItem-details').html( $('section.ProductItem-additional').html() ); $('section.ProductItem-additional').html('');</script> to this
<script> jQuery(document).ready(function($) { $('.ProductItem .ProductItem-additional').insertAfter('.ProductItem-details-excerpt'); }); </script>
-
Createxconform reacted to paul2009 in Can I set my homepage to a different page for mobile only
Hi
Yes, there's a workaround you can add for this. The code below assumes that the mobile version of your home page has the URL 'mobile'. Add the following code to the Code Injection area of the desktop Home page (you'll find this on the page settings on the Advanced tab):
<script> if (screen.width<760) {window.location="/mobile";} </script>
Paul
UPDATEI've updated this answer to allow for devices with higher resolutions and to allow testing on browsers when the width has been reduced.
Use the code below instead, adjusting the URL and the width (in pixels) to match your needs:
<script> if (document.documentElement.clientWidth <760) { window.location = "/mobile"; } </script>
-
Createxconform reacted to Megalomaniac in How do I create hide/show section of an entire page of text, images and or galleries in Squarespace (spoiler function/accordian/collapse)?
I'm trying to reduce my individual portfolio project pages to a few main images and the rest of the page that may contain additional text, galleries or images, to essentially hide unless prompted by the viewer. call it an accordion or a spoiler function or collapse, not best with terminology.
I started by looking at this thread, which has a simple and elegant approach for text only.http://answers.squarespace.com/questions/72321/how-do-i-create-hideshow-faqs-in-squarespace-collapsed-text
This is great for those circumstances, but I need it to include galleries and images or the like.
Does anyone know how this can be done or a variant of it that may also work?