Tips: Hook Elements Code Editing Area Missing in GeneratePress, WordPress

Tips: Hook Elements Code Editing Area Missing in GeneratePress, WordPress

Recently, I faced an issue while building a website using GeneratePress. I was working on a transparent navigation bar using Hook Elements. However, when I tried to edit a hook element, only the element title (at the top) and the publishing panel (on the right) were visible— the code editing area was completely missing! At ... Read more

1 Hook Elements Are Not Showing

Recently, I faced an issue while building a website using GeneratePress. I was working on a transparent navigation bar using Hook Elements.

1 Hook Elements Are Not Showing 1


However, when I tried to edit a hook element, only the element title (at the top) and the publishing panel (on the right) were visible— the code editing area was completely missing!

2 Hook Elements Are Not Showing



At first, I tried solving it myself, but I couldn’t figure it out. That’s when I reached out to the GeneratePress Premium Support team. As a lifetime member of GeneratePress, I’ve always received excellent support from them.


This time was no different. Their response was super quick, and they provided a simple two-line solution that fixed the issue instantly.

3 Hook Elements Are Not Showing
add_action( 'admin_head', function() {
echo '<​style>hashtag#generate_premium_elements.closed .inside {display: block;}<​/style>';
} );

It was such an interesting and smooth experience that I wanted to share it here with everyone!

4 Hook Elements Are Not Showing


Big thanks to the GeneratePress team for their amazing support and the awesome tools they provide!

5 Hook Elements Are Not Showing

🙌
#WebDevelopment #GeneratePress #ProblemSolved #SupportExperience

Leave a Comment