Tagged: x
-
AuthorPosts
-
August 24, 2016 at 12:39 pm #1145023
nezzazvoniParticipantHi,
I would like to have link + on mouse effect on whole block grid item (or any element which is capable of similar layout). Is it possible?
Please see the image: this is how I imagine the border of the block grid item looks like, and I would like to have the whole marked area as a link + to change color of the background in marked area (ideally without changing the color of the text).
Thanks in advance!
August 24, 2016 at 2:38 pm #1145278
JoaoModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
September 16, 2016 at 2:41 am #1177847
nezzazvoniParticipantThis reply has been marked as private.September 16, 2016 at 3:25 am #1177911
Rue NelModeratorHello There,
Please take note that making a whole column into a link would require customizations. If you want to highlight the column with a border when you hover it, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
.page-id-161 .x-content-band .x-content-band { margin: 10px; padding: 10px !important; border: dashed 2px transparent; transition: all 0.5s linear; } .page-id-161 .x-content-band .x-content-band:hover { border-color: red; }I have limited the code and it will only affect on the given url of the page in question.
Hope this helps.
September 16, 2016 at 4:09 am #1177952
nezzazvoniParticipantThanks!
So there is no way how can I make whole marked section a link? Ok, I will find another way…
How can I change the background on mouse over as well? The background-color does not work for me (or maybe I made mistake).
And how can I detect the id of a page, so I can replicate this on other pages?
September 16, 2016 at 8:36 am #1178164
JoaoModeratorHi There,
You can add an ID to each of your columns. than go to Cornerstone > Settings > Custom > Javascript and add the following code:
jQuery("#column-link").wrap("<a href='http://www.syncinteractive.co.uk/get-in-touch/'></a>");On the example above is for the column ID: column-link
Note that each ID can be used just one time and you will need to paste the code multiple times with the correspondent IDs
Hope it helps
Joao
September 27, 2016 at 9:53 am #1192392
nezzazvoniParticipantHi there,
can you please rewrite this code for the block grid item(s) on page id 2?
.page-id-161 .x-content-band .x-content-band { margin: 10px; padding: 10px !important; border: dashed 2px transparent; transition: all 0.5s linear; } .page-id-161 .x-content-band .x-content-band:hover { border-color: red; }September 27, 2016 at 10:29 am #1192454
JoaoModeratorHi There,
Please provide the URL of the specific page.
Thanks
Joao
September 29, 2016 at 10:27 am #1195872
nezzazvoniParticipantThis reply has been marked as private.September 29, 2016 at 10:36 am #1195889
nezzazvoniParticipantAlso, can you please show me how to get rid of the autoscroll effect on the element on the screenshot in previous post?
September 29, 2016 at 12:27 pm #1196036
Nabeel AModeratorHi again,
You can use this code for your homepage:
.page-id-2 .x-content-band .x-content-band { margin: 10px; padding: 10px !important; border: dashed 2px transparent; transition: all 0.5s linear; } .page-id-2 .x-content-band .x-content-band:hover { border-color: red; }To stop the scrolling effect please add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
jQuery( function($) { $('.vc_tta-tab a').on('click', function( e ){ setTimeout( function() { $('html, body').stop().stop(); console.log('scrolling stopped'); }, 100 ); }); $(document).ready(function() { $('.vc_tta.vc_general .vc_tta-panel-title > a, .vc_tta.vc_general .vc_tta-panel-title > a, .vc_tta-tab a').off('click touchstart touchend'); }); });Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
September 30, 2016 at 6:59 am #1197179
nezzazvoniParticipantWell it actually highlights every single block on the page, I need just the individual blocks in the tabbed section as visible on screenshot.
September 30, 2016 at 12:09 pm #1197546
Nabeel AModeratorHi again,
Please replace the previous CSS code with this one:
.page-id-2 #x-content-band-3 #x-content-band-5 { margin: 10px; padding: 10px !important; border: dashed 2px transparent; transition: all 0.5s linear; } .page-id-2 #x-content-band-3 #x-content-band-5:hover { border-color: red; }Let us know how this goes!
October 10, 2016 at 10:30 am #1210083
nezzazvoniParticipantWell, closer, but no… I need individual blocks to be highlighted, now it highlights the whole row.
October 10, 2016 at 10:19 pm #1210846
FriechModeratorHi There,
Please update the css code given by Rue Nel above to this:
.page-id-161 #x-content-band-3 #x-content-band-5, .home #x-content-band-5 .x-1-2 { margin: 10px; padding: 10px !important; border: dashed 2px transparent; transition: all 0.5s linear; } .page-id-161 #x-content-band-3 #x-content-band-5:hover, .home #x-content-band-5 .x-1-2:hover { border-color: red; }This should apply the same styling on the columns on the Nabízíme vzdělání v těchto oborech content band, on your home page.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1145023 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
