I am trying to edit //style 3 (which is title overlaid with zoom effect).
I would like to make it so there is no color overlay - just the "zoom effect". I was able to change the opacity of the hover - however, the initial state when the page loads has a color overlay. When you hover - the color overlay will be removed - and it will not come back (until you refresh the page again). I cannot seem to find the initial state for this color overlay to get rid of it. Can you help?
How can I edit this .js file in the child theme so I can update the main file when needed?
2. You\'d need to enqueue the init.js file in your child theme instead. Use this snippet in your child theme functions.php
// Override a javascript script in the main theme with the one in my child theme
add_action( \'wp_enqueue_scripts\', \'javascript_init_script_fix\', 20 );
function javascript_init_script_fix() {
wp_dequeue_script( \'nectarFrontend\' );
wp_enqueue_script( \'salient-child\', get_stylesheet_directory_uri() . \'/js/init.js\', array( \'jquery\' ) );
}
and then simply create a js folder in your child theme and add an init.js file
I have two inquiries:
Thank you.
Hey,
1. Add this into the custom css box in the Salient options panel:
2. You\'d need to enqueue the init.js file in your child theme instead. Use this snippet in your child theme functions.php and then simply create a js folder in your child theme and add an init.js file