Michaelo Posted March 17 Share Posted March 17 (edited) Hi, I've added CSS to the cover-page on my site to position the navigation in top left corner, but it keeps reverting back to the original default CSS. <style> [data-slice-type="navigation"] { position: fixed !important; left: 25px !important; top: 25px !important; } </style> When I load the page the nav goes to the top left for a split second and then moves back to the default spot. Here is a link to the site – www.designbyassoc.com Is there some CSS that can disable the default settings for that page? Thanks Edited March 17 by Michaelo left off website address Link to comment
creedon Posted March 17 Share Posted March 17 (edited) Try the following. <style> /* Center navigation at top */ @media only screen and ( min-width : 768px ) { .sqs-slide-wrapper[ data-slide-type="cover-page" ] .sqs-slice-group.align-center-vert { top : unset !important; transform : unset !important; } } </style> Let us know how it goes. Edited March 17 by creedon version 2 Michaelo 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. Link to comment
Michaelo Posted March 17 Author Share Posted March 17 Thanks very much. I tried it but it doesn't seem to work. It keeps wanting to go back to the original setting! Link to comment
Solution creedon Posted March 17 Solution Share Posted March 17 I updated my code. Please try the revised version. Michaelo 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. Link to comment
Michaelo Posted March 17 Author Share Posted March 17 Thanks very much, that's solved it! That's really appreciated. creedon 1 Link to comment
Michaelo Posted March 17 Author Share Posted March 17 Sorry to ask for more help, but I’m now trying to get the cover page text size to go from the default of 20px to 25px on a mobile. Any further help would be really appreciated. Thanks again Link to comment
creedon Posted March 17 Share Posted March 17 Try something like the following. .sqs-slide-wrapper[ data-slide-type="cover-page" ] [ data-slice-type="navigation" ] ul { font-size : 25px; } You'll of course need to wrap the ruleset in a media query. Let us know how it goes. Michaelo 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. Link to comment
Michaelo Posted March 18 Author Share Posted March 18 Thanks again for your help. I tried the code wrapped in a media query but it doesn't appear to be working. Link to comment
Michaelo Posted March 18 Author Share Posted March 18 I added some code to make the slide-show images clickable links and then managed to work out how to change the mobile text size as a part of that code. Thanks again for all your help, it has been really appreciated. creedon 1 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