Tagged: cornerstone
-
AuthorPosts
-
July 13, 2016 at 6:11 am #1084639
josephk99997ParticipantHi,
See the screenshot. I want to be able to click that box (e.g. column 1/2 highlighted in the screenshot) and it will scroll down the page to a certain position.
How do I do this in Cornerstone?
Note: Appearance > Customise > Custom CSS does not work on my system (does not save)
July 13, 2016 at 6:11 am #1084641
josephk99997ParticipantThis reply has been marked as private.July 13, 2016 at 6:15 am #1084648
josephk99997ParticipantUploading image again due to error earlier
July 13, 2016 at 8:31 am #1084841
JoaoModeratorHello Tristan,
Thanks for the updates. What we can recommend in doing this in Cornerstone is by using a custom javascript. Please follow on this step.
2] Select which column you would like to link and insert a custom class linked-column for example
3] Insert the following custom JS in the settings tab (in Cornerstone), Settings > Custom JS(function($){ $('<a id="column-link" href="#my-link">').insertBefore('.linked-column'); $('.linked-column').prependTo( $('#column-link') ); })(jQuery);Please make sure that you have inserted the correct link #my-link for example.
We would loved to know if this has work for you.
Thank you.
July 13, 2016 at 10:16 am #1085000
josephk99997ParticipantHey, Joao, thanks for the info.
Here is what I did:
1. I selected the column and added an ID “column-link”
2. and then i added the code in Custom JSBut it does not work. What I am doing wrong?
July 13, 2016 at 11:19 am #1085135
JoaoModeratorHi There
I have changed the JS to:
jQuery("#column-link").wrap("<a href='http://www.syncinteractive.co.uk/get-in-touch/'></a>");And now it works, do the same for the others just with different ids.
Hope it helps
Joao
July 13, 2016 at 11:41 am #1085180
josephk99997ParticipantOk great it works but for some reason the layout is now affected. There is no gap between the two boxes.
July 13, 2016 at 11:47 am #1085199
josephk99997ParticipantThe gap is there in cornerstone but not when i load the site on the browser.
July 13, 2016 at 5:02 pm #1085724
JadeModeratorHi there,
Please select the column that contains no space on the right then add this code in the style field of the column:
margin-right: 4%;.Hope this helps.
July 14, 2016 at 3:10 am #1086401
josephk99997ParticipantJade, it works perfectly. Thank you!
July 14, 2016 at 6:20 am #1086623
LelyModeratorYou’re welcome!
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1084639 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
