ChrisC_SQSP Posted September 19, 2016 Share Posted September 19, 2016 @pgraves Hi there, please make sure that you are only adding answers to posts when there is a solution to provide. Otherwise, you will want to add your response as a comment. I've gone ahead and converted this comment for you. Link to comment
ChrisC_SQSP Posted September 19, 2016 Share Posted September 19, 2016 @whatkarensaid Hi there, please make sure that you are only adding answers to posts when there is a solution to provide. Otherwise, you will want to add your response as a comment. I've gone ahead and converted this comment for you. Link to comment
mandapop Posted October 6, 2016 Share Posted October 6, 2016 @Megalomaniac, can you pleeeeeease help meeee? Would love to know what I'm doing wrong. It's just for 8 image blocks with captions on a Page... I put the big code (along with ajax line) in Settings > Advanced > Code Injection... I put the button before the content.. I called it Show More and made it lead to #expand-8 ... I also tried lower numbers just to see... Nothing. Never worked at all. :( http://MANDAMILLER.COM Link to comment
squarehnd Posted January 12, 2017 Share Posted January 12, 2017 Hi, I have tried the code but can't seem to make it work.Not sure what I am doing wrong...?https://monica-torrejon.squarespace.comUnder What we do section Your help would be appreciatedthanks Link to comment
squarehnd Posted January 12, 2017 Share Posted January 12, 2017 @Megalomaniac this doesn't work for me at all, not sure what am i doing wrong...?the blocks of text under show more never disappear...?please help! Link to comment
dsfx1 Posted April 20, 2017 Share Posted April 20, 2017 (edited) @Megalomaniac Megalo this is great and I have it working about 90%... However I have an issue in that it works if you go directly to the page (www.ecke.audio/work or /work/) but when you navigate there from the homepage www.ecke.audio and click 'work' the menu is automatically open... if you refresh the page it works again but obviously defeats the object if it doesn't work at first time of asking. Any help would be mega. Thanks Edited April 20, 2017 by dsfx1 Initial Revision Link to comment
logaritym Posted May 1, 2017 Share Posted May 1, 2017 I have offered another options, which IMO works better and loads instantly over here -> https://answers.squarespace.com/questions/176218/spoiler-button-hidereveal.html#answer-176381 Link to comment
ricrra Posted October 12, 2017 Share Posted October 12, 2017 I'm also anxious to know if there's a version of this to create multiple expanding headers on the same page with different names. For example, my goal is to create: Exhibitions (expand-1) - - > Event summary block Bio (expand-1) - - > Text block Publications - - > Gallery list summary block News- - > Blog summary block This is already working fine for me as long as all the buttons use the same name (show more/show less) but is there a way to duplicate the process with different button texts? Link to comment
NobleandThane Posted July 22, 2018 Share Posted July 22, 2018 Hi I know this is an old thread but Im working on a page and want a Show More / Show Less button as quite frankly having all the information on the page at once is a bit overwhelming. I've tried everything above by @Megalomaniac which was really great, however I've come across one problem. When I first load the new page it shows all the information AND the button in the 'Show More' state. The button is inactive. When I refresh or reload the page it works perfectly. Showing a compressed page and a functioning 'Show More' / 'Show Less' page. Surely this must be an easy fix? I've tried different browsers and cleared history etc to see if that was causing the issue but no luck. It's worth pointing out that it's not just text on my page. It has a couple of image galleries and a further 'Enquire' button. My site is www.NobleandThane.com however the page in question is hidden just now as it's a test page for a product that isn't ready to be published. Any little tweaks or fixes would be gratefully received. It feels so close!! Many thanks in advance. Jonny. Link to comment
Guest Posted July 28, 2018 Share Posted July 28, 2018 I'm having this exact same problem! Have you figured it out? In the Squarespace Editor, it works perfectly. When accessed directly from the URL, it works perfectly. BUT, when you get to the page with a hyperlink, it shows everything expanded already and only a page refresh will make it function correctly. I'll do some digging, but let me know if you figure it out! @megalomaniac Link to comment
Guest Posted July 28, 2018 Share Posted July 28, 2018 Jonny, I figured it out! https://answers.squarespace.com/questions/188857/why-doesnt-my-javascript-code-work-until-i-refresh.html It's basically because of Ajax scrolling, aka Infinite Scroll. If your site doesn't use it, you can disable it in Style Editor and your problem should be solved! Best,Stephen Link to comment
Megalomaniac Posted July 31, 2018 Author Share Posted July 31, 2018 wow... I think i started a square space monster a long time ago! SORRY, Ive been gone for a while everyone, working crazy hrs, but now I seem to have a lot of free time! Never even thought to look back here until i got an email the other day! I must have spent hundreds of hours learning how to do some coding back then, and i profess that i am not a coder. but anything is possible i guess. I truly forget a lot about what i learned back then, but recall that adding galleries and summaries were a problem, and also recall that no one had a solution, and i couldn't figure it out then. Dedicated professional with 18 years of experience in Architectural + Interior Design and Urban Planning and with four years as an adjunct professor of Interior Design at Ringling College of Art + Design. Specializes in hospitality, entertainment, multi-family and mixed use architecture, interior design + planning. Expertise in programmatic design, conceptual design, design development, problem solving complex design scenarios, space + facility planning and urban and site development. Technical expert in BIM production, education + management, improving upon team workflow, efficiency, consistency, quality and confidence. Parametric modeling, 3D model coordination, 3D rendering and avid student of computational modeling. New to web development! Link to comment
Megalomaniac Posted July 31, 2018 Author Share Posted July 31, 2018 Also if we look at the original post i spoke about, under exceptions, about Multiple injections on a page or index doesn't work. This was a big thing i found causes many issues. Dedicated professional with 18 years of experience in Architectural + Interior Design and Urban Planning and with four years as an adjunct professor of Interior Design at Ringling College of Art + Design. Specializes in hospitality, entertainment, multi-family and mixed use architecture, interior design + planning. Expertise in programmatic design, conceptual design, design development, problem solving complex design scenarios, space + facility planning and urban and site development. Technical expert in BIM production, education + management, improving upon team workflow, efficiency, consistency, quality and confidence. Parametric modeling, 3D model coordination, 3D rendering and avid student of computational modeling. New to web development! Link to comment
Megalomaniac Posted July 31, 2018 Author Share Posted July 31, 2018 (edited) What i can do is share with you all my site. And maybe you all can look at the code from the specific pages where i use the show hide, but i believe it is all the same as was posted years ago, which can be found under the resume section. Now, i know that, not everyone wants to produce the identical solution, as mine is much simpler and only contains text whereas some of you are looking to add a bit more to this, ie galleries, and i don't think the code has ever worked for that. here is my site: www.anthonyashford.com and the password to it is: confidential Edited July 31, 2018 by Megalomaniac Initial Revision Dedicated professional with 18 years of experience in Architectural + Interior Design and Urban Planning and with four years as an adjunct professor of Interior Design at Ringling College of Art + Design. Specializes in hospitality, entertainment, multi-family and mixed use architecture, interior design + planning. Expertise in programmatic design, conceptual design, design development, problem solving complex design scenarios, space + facility planning and urban and site development. Technical expert in BIM production, education + management, improving upon team workflow, efficiency, consistency, quality and confidence. Parametric modeling, 3D model coordination, 3D rendering and avid student of computational modeling. New to web development! Link to comment
Megalomaniac Posted July 31, 2018 Author Share Posted July 31, 2018 Maybe Stephen's @shrothermel post about the ajax scrolling is a good idea. i'd look into that. Or maybe the solution that @logaritym provided in 2017 has better results for your needs. I wish i could be more helpful, but today i'm a little behind on what i was doing back then. I feel i'd have to relearn it all over, and i just may have to as im getting ready to revamp my site with all new work and make it more "architecturally minimalist" in feel. Dedicated professional with 18 years of experience in Architectural + Interior Design and Urban Planning and with four years as an adjunct professor of Interior Design at Ringling College of Art + Design. Specializes in hospitality, entertainment, multi-family and mixed use architecture, interior design + planning. Expertise in programmatic design, conceptual design, design development, problem solving complex design scenarios, space + facility planning and urban and site development. Technical expert in BIM production, education + management, improving upon team workflow, efficiency, consistency, quality and confidence. Parametric modeling, 3D model coordination, 3D rendering and avid student of computational modeling. New to web development! Link to comment
Megalomaniac Posted July 31, 2018 Author Share Posted July 31, 2018 What i had to do was a lot of trial end error, and this is just what you all need to do, keep trying until you get it! I wish you all the best and ill try to be more active on here in the future. Dedicated professional with 18 years of experience in Architectural + Interior Design and Urban Planning and with four years as an adjunct professor of Interior Design at Ringling College of Art + Design. Specializes in hospitality, entertainment, multi-family and mixed use architecture, interior design + planning. Expertise in programmatic design, conceptual design, design development, problem solving complex design scenarios, space + facility planning and urban and site development. Technical expert in BIM production, education + management, improving upon team workflow, efficiency, consistency, quality and confidence. Parametric modeling, 3D model coordination, 3D rendering and avid student of computational modeling. New to web development! Link to comment
Megalomaniac Posted July 31, 2018 Author Share Posted July 31, 2018 Very nice solution @logaritym ! Dedicated professional with 18 years of experience in Architectural + Interior Design and Urban Planning and with four years as an adjunct professor of Interior Design at Ringling College of Art + Design. Specializes in hospitality, entertainment, multi-family and mixed use architecture, interior design + planning. Expertise in programmatic design, conceptual design, design development, problem solving complex design scenarios, space + facility planning and urban and site development. Technical expert in BIM production, education + management, improving upon team workflow, efficiency, consistency, quality and confidence. Parametric modeling, 3D model coordination, 3D rendering and avid student of computational modeling. New to web development! Link to comment
Megalomaniac Posted July 31, 2018 Author Share Posted July 31, 2018 @squarehnd - Im sorry, ive been very far removed from this all. I hope you were able to find a solution. Dedicated professional with 18 years of experience in Architectural + Interior Design and Urban Planning and with four years as an adjunct professor of Interior Design at Ringling College of Art + Design. Specializes in hospitality, entertainment, multi-family and mixed use architecture, interior design + planning. Expertise in programmatic design, conceptual design, design development, problem solving complex design scenarios, space + facility planning and urban and site development. Technical expert in BIM production, education + management, improving upon team workflow, efficiency, consistency, quality and confidence. Parametric modeling, 3D model coordination, 3D rendering and avid student of computational modeling. New to web development! Link to comment
Megalomaniac Posted July 31, 2018 Author Share Posted July 31, 2018 @mandapop - Im sorry, ive been very far removed from this all. I hope you were able to find a solution. Dedicated professional with 18 years of experience in Architectural + Interior Design and Urban Planning and with four years as an adjunct professor of Interior Design at Ringling College of Art + Design. Specializes in hospitality, entertainment, multi-family and mixed use architecture, interior design + planning. Expertise in programmatic design, conceptual design, design development, problem solving complex design scenarios, space + facility planning and urban and site development. Technical expert in BIM production, education + management, improving upon team workflow, efficiency, consistency, quality and confidence. Parametric modeling, 3D model coordination, 3D rendering and avid student of computational modeling. New to web development! Link to comment
Megalomaniac Posted July 31, 2018 Author Share Posted July 31, 2018 @Towns - Im sorry, ive been very far removed from this all. I hope you were able to find a solution.Multi languages sounds like multi pages for each language or is their a way to convert all text into what ever language? Dedicated professional with 18 years of experience in Architectural + Interior Design and Urban Planning and with four years as an adjunct professor of Interior Design at Ringling College of Art + Design. Specializes in hospitality, entertainment, multi-family and mixed use architecture, interior design + planning. Expertise in programmatic design, conceptual design, design development, problem solving complex design scenarios, space + facility planning and urban and site development. Technical expert in BIM production, education + management, improving upon team workflow, efficiency, consistency, quality and confidence. Parametric modeling, 3D model coordination, 3D rendering and avid student of computational modeling. New to web development! Link to comment
Megalomaniac Posted July 31, 2018 Author Share Posted July 31, 2018 @ivy2015 - Im sorry, ive been very far removed from this all. I hope you were able to find a solution. Dedicated professional with 18 years of experience in Architectural + Interior Design and Urban Planning and with four years as an adjunct professor of Interior Design at Ringling College of Art + Design. Specializes in hospitality, entertainment, multi-family and mixed use architecture, interior design + planning. Expertise in programmatic design, conceptual design, design development, problem solving complex design scenarios, space + facility planning and urban and site development. Technical expert in BIM production, education + management, improving upon team workflow, efficiency, consistency, quality and confidence. Parametric modeling, 3D model coordination, 3D rendering and avid student of computational modeling. New to web development! Link to comment
chrapm1 Posted February 24, 2019 Share Posted February 24, 2019 is there a way to make this a "one-way" Show More button? to explain, i'm trying to have a Show More button that hides itself once you click it. basically, it will show more like this code does but you won't be able to show less (unless you refresh the page, resetting the button) Link to comment
CustomCaptureUK Posted November 8, 2019 Share Posted November 8, 2019 Thanks to the website http://forthandwild.com/blog/squarespace-accordion-menu managed to get this up and running easily on this page https://www.futuregenerationtrust.co.uk/policy! Link to comment
AkankshaK Posted February 17, 2022 Share Posted February 17, 2022 @Megalomaniac Thanks for this, works great. Any reason why this wont work with latest jquery version 3.6.0? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment