Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1282023

    Hi there,

    I’m styling the Post Slider with css and have run into some problems that I’m hoping you can help with. You’ll see the post slider in the first white section, titled “Our Latest Jobs”

    1. Is there a way to completely remove the box shadow on hover so that there’s no hover effect? I’ve seemingly removed some of the effect but there’s still a left and right shadow on hover.

    2. After hitting the next arrow, the text shows incorrectly, before kicking in the css padding and correcting itself. Is there a way to have this happen immediately as it does with the first pages posts? It looks really odd when loading that way.

    3. Is there a way to make the entire image and all text link to the post, as opposed to just the post titles?

    Thanks,
    Matt

    #1282768

    Hey Matt,

    Thank you for the inquiries.

    1.) The shadow effect on hover can be removed using this css code.

    .avia-content-slider:hover .slide-entry:hover {
    	box-shadow: none !important;
    }
    

    2.) This seems to be the css code that is causing the transition issue.

    .slide-entry-wrap.active > article {
    	padding: 0px 0px 0px 70px;
    }
    

    Please replace it with the following css instead.

    .slide-entry-wrap > article {
    	padding: 0px 0px 0px 70px;
    }

    If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Thanks!

    Best regards,
    Ismael

    #1282845

    Thank you Ismael. I’m replying here rather than creating a new topic just because you missed one point in my questions above so would still apply to my original message and may help others…

    3. Is there a way to make the entire image and all text link to the post, as opposed to just the post titles?

    Thanks,
    Matt

    #1283079

    Hi,

    3.) Alright. We could use this script in the functions.php file to make the whole box or the whole slide entry clickable.

    // a custom script
    function ava_custom_script_mod() {
        if ( wp_script_is( 'avia-default', 'registered' ) ) {
            wp_add_inline_script( 'avia-default', '
    		(function($) {
    			$(".slide-entry").on("click", function() {
    				window.location.href = $(this).find("a").attr("href"); 
    			});
    		})(jQuery);
    	');
        }
     }
     add_action( 'wp_enqueue_scripts', 'ava_custom_script_mod', 9999);
    
    

    Please make sure to add this css code in the Quick CSS field afterwards.

    .slide-entry {
    	cursor: pointer;
    }

    Best regards,
    Ismael

    #1283135

    Perfect, thank you!

    #1283222

    Hi mattwilliamsyogi,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1283695

    Hi,

    At first, I thought Ismael had sorted my issue but sadly it hasn’t worked. When I hover over an image in the post slider it now changes the cursor from a pointer to a hand which implies that the image is clickable but sadly, it doesn’t link to the post itself. It just seems like a blank link has been applied to the images. How can I get the entire image to click through to the posts rather than just the post title?

    Thanks,
    Matt

    #1283699

    I’ve found a workaround using the below code but it’s not 100% effective so would be interested to see if you can think of a better way to accomplish the task? –

    .avia-content-slider-inner > div:nth-child(1) > article > div > header > h3 > a {
    padding: 33px 103px 160px 33px !important;
    margin-left: -33px !important;
    }

    .avia-content-slider-inner > div:nth-child(2) > article > div > header > h3 > a {
    padding: 33px 103px 160px 33px !important;
    margin-left: -33px !important;
    }

    .avia-content-slider-inner > div:nth-child(3) > article > div > header > h3 > a {
    padding: 33px 103px 160px 33px !important;
    margin-left: -33px !important;
    }

    .avia-content-slider-inner > div:nth-child(4) > article > div > header > h3 > a {
    padding: 33px 103px 160px 33px !important;
    margin-left: -33px !important;
    }

    #1284394

    Hi,

    Thank you for the update.

    The whole box or slide entry container should be clickable and redirect to the corresponding links when clicked. The css code above will just adjust the padding, so I doubt it actually changes anything. Did you add the css code that we suggested above?

    .slide-entry {
    	cursor: pointer;
    }
    

    Best regards,
    Ismael

    #1284405

    My apologies,

    The below css was messing things up. All working now, thanks for your help!

    .hidden {
    position: unset !important;
    }

    #1284522

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Post Slider hover transition’ is closed to new replies.