mjgave Posted July 9, 2022 Posted July 9, 2022 And here it is July 2022 and this is STILL not fixed! It makes no sense that the past events show the button and the current ones DON'T.
Sarah_L Posted October 24, 2022 Posted October 24, 2022 Is anyone able to tell me the code to remove the 'View Event' from the past events? Also let me know where the code would go? Thanks
creedon Posted October 24, 2022 Posted October 24, 2022 5 hours ago, Sarah_L said: Is anyone able to tell me the code to remove the 'View Event' from the past events? Please post the URL for a page on your site where we can see your issue. If your site is not public please set up a site-wide password, if you've not already done so. Post the password here. Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works. Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/. We can then take a look at your issue. tuanphan 1 Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
aliciainspired Posted March 15, 2023 Posted March 15, 2023 Since Squarespace automatically adds a button for past events, I now have two 'view event' buttons. Does anyone have a suggestion for how to fix this?
kirkroberts Posted March 15, 2023 Posted March 15, 2023 (edited) On 3/15/2023 at 9:09 AM, aliciainspired said: Since Squarespace automatically adds a button for past events, I now have two 'view event' buttons. Does anyone have a suggestion for how to fix this? You could try this in your Custom CSS: .eventlist .eventlist-button, // all sqs event buttons, including any future buttons .eventlist--past .eventlist-button // just the past buttons { display: none !important; } If that doesn't work, share the URL of the page in question so we can see what you're working with. Edited March 21, 2023 by kirkroberts tuanphan 1
aliciainspired Posted March 21, 2023 Posted March 21, 2023 Thank you, that didn't seem to work though. https://www.naturefirst.info/events
kirkroberts Posted March 21, 2023 Posted March 21, 2023 48 minutes ago, aliciainspired said: Thank you, that didn't seem to work though. https://www.naturefirst.info/events Sorry, you'll need to add the !important declaration to overcome the specificity of pre-existing styles. I added it to the post above.
aliciainspired Posted March 21, 2023 Posted March 21, 2023 1 hour ago, kirkroberts said: Sorry, you'll need to add the !important declaration to overcome the specificity of pre-existing styles. I added it to the post above. Thank you, I added the code but unfortunately the two buttons are still there?
kirkroberts Posted March 21, 2023 Posted March 21, 2023 17 minutes ago, aliciainspired said: Thank you, I added the code but unfortunately the two buttons are still there? Where did you add the CSS? I don't see it in the page source. Try adding it to the Custom CSS area of your site.
aliciainspired Posted March 22, 2023 Posted March 22, 2023 16 hours ago, kirkroberts said: Where did you add the CSS? I don't see it in the page source. Try adding it to the Custom CSS area of your site. I added the CSS to the Custom CSS area but maybe I have done something wrong?
kirkroberts Posted March 22, 2023 Posted March 22, 2023 (edited) @aliciainspired I'm glad you included some of your Custom CSS. There needs to be a space between .eventlist and .eventlist-button, and also between .eventlist--past and .eventlist-button . Otherwise they are joined and each pair of classes would need to be present on the same tag for the style to work. The space means the .eventlist-button tag is inside the .eventlist or .eventlist--past tag. Edited March 22, 2023 by kirkroberts
aliciainspired Posted March 22, 2023 Posted March 22, 2023 6 minutes ago, kirkroberts said: @aliciainspired I'm glad you included some of your Custom CSS. There needs to be a space between .eventlist and .eventlist-button, and also between .eventlist--past and .eventlist-button . Otherwise they are joined and each pair of classes would need to be present on the same tag for the style to work. The space means the .eventlist-button tag is inside the .eventlist or .eventlist--past tag. Ok cool I added he spaces but unfortunately the extra buttons haven't disappeared.
kirkroberts Posted March 22, 2023 Posted March 22, 2023 @aliciainspired You have that declaration in a media query with max-width 700px:
aliciainspired Posted March 22, 2023 Posted March 22, 2023 17 minutes ago, kirkroberts said: @aliciainspired You have that declaration in a media query with max-width 700px: My coding knowledge isn't very much, what should I change?
kirkroberts Posted March 22, 2023 Posted March 22, 2023 @aliciainspired The CSS that you added to Custom CSS for the buttons is inside the braces for the @media query. In your screenshot there is a curly brace at line 37. If you move the button CSS below that curly brace that will probably do it. Think of it as the declarations are "nested" inside of each other. You want to un-nest the button CSS so it is not inside the @media curly braces.
aliciainspired Posted March 22, 2023 Posted March 22, 2023 Oh you legend thank you so much! kirkroberts 1
em_ Posted June 4, 2023 Posted June 4, 2023 Any idea whats the easiest way to deal with all this? I want to make it as simple as possible for my client. I dont want to have repeated buttons once the event is over/ have to manually go in to edit every time. Any solution to permanently get rid of 'view event' of past events? But also show details?
paul2009 Posted June 5, 2023 Posted June 5, 2023 (edited) 6 hours ago, em_ said: Any solution to permanently get rid of 'view event' of past events? You can remove this button from past events by adding this to the custom CSS panel: .eventlist-button.sqs-editable-button.sqs-button-element--primary { display: none; } Edited June 5, 2023 by paul2009 mack_warren 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
em_ Posted June 5, 2023 Posted June 5, 2023 12 hours ago, paul2009 said: You can remove this button from past events by adding this to the custom CSS panel: .eventlist-button.sqs-editable-button.sqs-button-element--primary { display: none; } Life saver! Thanks @paul2009 paul2009 1
paul2009 Posted July 18, 2023 Posted July 18, 2023 Update July 2023: Squarespace appear to have resolved this issue as "View Event →" buttons are now appearing on Upcoming Events: Did this help? Please give feedback by clicking an icon below ⬇️ creedon 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment