Archived topic
Suggestion: be able to edit screen height in elements GP
3 replies · Started by iain022 on October 15, 2021
Hello there,
First of all, congratulations on your great work in GP.
I would like to suggest making the code screen height editable on the elements page of GP so that it can be made higher. Now you can only see 16 lines of code and sometimes I would like to stretch it to take up all the space in height of the screen and be able to see 30 or 40 lines of code at the same time.
See this image to understand it better:
https://ibb.co/JK0swtQ
Many thanks for your work.
*Feel free to delete this post if it is not the right place to post it.
Hi there,
thanks for the feedback and this is absolutely the right place to post this :)
You can add this CSS snippet to set the codeMirrors height:
add_action( 'admin_head', function() {
echo '<style>
.post-type-gp_elements .CodeMirror {
height: 500px;
}
</style>';
});
Hi, David
Thank you for your support, it's works great.
Best Regards,
Glad to hear that