Tagged: x
-
AuthorPosts
-
March 7, 2017 at 3:19 pm #1398280
bjmillerParticipantI have 5 columns in a row and would like to make them clickable to the applicable page.
March 7, 2017 at 3:21 pm #1398282
bjmillerParticipantThis reply has been marked as private.March 7, 2017 at 3:29 pm #1398289
JoaoModeratorHi There,
Add a different ID to each column.
#column-link , #column-link-1, #column-link-2, #column-link-3, #column-link-4
Add the following code to Cornerstone : Setting : Custom : JS
jQuery("#column-link").wrap("<a href='http://www.example.co.uk/get-in-touch/'></a>"); jQuery("#column-link-1").wrap("<a href='http://www.example.co.uk/get-in-touch/'></a>"); jQuery("#column-link-2").wrap("<a href='http://www.example.co.uk/get-in-touch/'></a>"); jQuery("#column-link-3").wrap("<a href='http://www.example.co.uk/get-in-touch/'></a>"); jQuery("#column-link-4").wrap("<a href='http://www.example.co.uk/get-in-touch/'></a>");Change http://www.example.co.uk/get-in-touch for the desired link
Hope it helps
Joao
March 7, 2017 at 8:45 pm #1398574
bjmillerParticipantThat had big affect on my spacing. How would I fix it?
March 8, 2017 at 5:38 am #1398917
Paul RModeratorHi,
You may change the code to this.
jQuery("#column-link").wrap("<a class='my-link' href='http://www.example.co.uk/get-in-touch/'></a>"); jQuery("#column-link-1").wrap("<a class='my-link' href='http://www.example.co.uk/get-in-touch/'></a>"); jQuery("#column-link-2").wrap("<a class='my-link' href='http://www.example.co.uk/get-in-touch/'></a>"); jQuery("#column-link-3").wrap("<a class='my-link' href='http://www.example.co.uk/get-in-touch/'></a>"); jQuery("#column-link-4").wrap("<a class='my-link' href='http://www.example.co.uk/get-in-touch/'></a>");Then add this in Cornerstone > Settings > Custom CSS (https://www.screencast.com/t/UIPW7GRa)
.my-link { display:block; width: 16.8%; float:left; margin-right: 4%; } .my-link .x-column.x-1-5 { width: 100% !important; } #x-section-3 .x-container .my-link:last-child { margin-right:0; }Hope that helps.
March 8, 2017 at 10:53 pm #1400095
bjmillerParticipantThanks! You are appreciated.
March 9, 2017 at 1:45 am #1400233
Paul RModeratorYou’re welcome! 🙂
March 15, 2017 at 9:22 am #1408024
bjmillerParticipantThis reply has been marked as private.March 15, 2017 at 11:01 am #1408204
JadeModeratorHi there,
Please add this code in the customizer:
@media (max-width: 767px) { .my-link { width: 100%; } .my-link .x-column { padding-bottom: 50px !important; margin-bottom: 20px; } }Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1398280 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
