-
AuthorPosts
-
December 16, 2016 at 5:58 pm #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,
AlwinDecember 16, 2016 at 6:03 pm #725492Hey 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 wellCheers!
YigitDecember 16, 2016 at 6:20 pm #725504Hi 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,
AlwinDecember 16, 2016 at 10:16 pm #725563Hi,
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,
YigitDecember 17, 2016 at 5:13 pm #725722Hi 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 8 years, 10 months ago by
Alwin.
December 20, 2016 at 8:19 pm #726752Hi Yigit,
Did you read my last question from 17 December?
December 21, 2016 at 4:23 pm #727120Hi,
the code should go into functions.php. Just move any modified files inside a /js folder of your child theme.
Best regards,
AndyJanuary 3, 2017 at 7:47 pm #729118Thanks, it works fine now!
-
This reply was modified 8 years, 10 months ago by
-
AuthorPosts
- The topic ‘custom height section?’ is closed to new replies.
