Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #725488

    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,


    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 – to change one of the predefined heights as well



    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,



    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,


    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?

    • This reply was modified 3 years, 9 months ago by  Alwin.

    Hi Yigit,

    Did you read my last question from 17 December?



    the code should go into functions.php. Just move any modified files inside a /js folder of your child theme.

    Best regards,


    Thanks, it works fine now!

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘custom height section?’ is closed to new replies.