I have created a Color section with 100% container width and placed an image in it which I choose to stretch to cover the element.
Now I have the options to choose the minimal height of the section like 25% of the browser window, 50% of the browser window and so on.
Can I only chose 25%,50% and 75% or can I also choose my own custom height like 35%? How to do that?
Thank you,
Alwin
Hey Alwin!
You can choose to adjust the height depending on the content. That would be the best solution in my opinion.
You can refer to my post here – https://kriesi.at/support/topic/custom-hight-of-color-section/#post-682269 to change one of the predefined heights as well
Cheers!
Yigit
Hi Yigit,
Oke, I get it. But if I change this shortcodes, what happens when I update the Enfold theme? I am using the Enfold Child theme, do I have to add this changed code to my child theme? If yes, where to add it?
Thanks again,
Alwin
Hi,
If you are using a child theme, please add following code to Functions.php file of your child theme
function wp_change_aviajs() {
wp_dequeue_script( 'avia-shortcodes' );
wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 2, true );
}
add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
and move modified file inside /js folder
Best regards,
Yigit
Hi Yigit,
Oke, I just add this code to Functions.php file of my child theme. But do I have to create a /js folder in the child theme too and put the changed code there? So that it does not change when I update the theme?
Hi Yigit,
Did you read my last question from 17 December?
Hi,
the code should go into functions.php. Just move any modified files inside a /js folder of your child theme.
Best regards,
Andy
Thanks, it works fine now!