Last updated
Last updated
Now we have to add our custom devices to the default controls, so search for file named control-stack.php
in following directory
elementor/includes/base/control-stack.php
In this file check for the following function in line number 19 you will find following codes
As you can see there are constant defined for each device so let's add ours too and te result will be as follows
Please use copy button of the code panel, if you do manual select ,copy , paste it might break the code ! Gitbook Bug i guess..
Check for following function in the same file more or less at line number 815
You can see line number 3 the $devices
array variable, just add our defined constants in Step A here. So the resulted function will be as follows
Please use copy button of the code panel, if you do manual select ,copy , paste it might break the code ! Gitbook Bug i guess..
Similarly now do the same thing in another function,check for following function in the same file more or less at line number 915
You can see line number 2 the $devices
array variable, just add our defined constants in Step A here. So the resulted function will be as follows
Please use copy button of the code panel, if you do manual select ,copy , paste it might break the code ! Gitbook Bug i guess..
Now save it and let's head to final step.
In case you need more reference you can check the modified files i have included.