• Resolved borisbox

    (@borisbox)


    Hey!

    I don’t use these forums much so I don’t know if this is the right spot to post this, but this is a temporary solution for people who’s “Edit with Elementor” button disappeared from the admin bar. I’ve tried every troubleshooting step posted online and nothing fixed it, so I just came up with a simple solution by adding my own button in there that does the job.

    You’ll need to add this before the closing ?> PHP tag in your functions.php:

    function custom_toolbar_link($wp_admin_bar) {
    $id = get_the_ID();
    $editedurl = "https://sellerflows.com/wp-admin/post.php?post=".$id."&action=elementor";
        $args = array(
            'id' => 'elementorfix',
            'title' => 'Elementor Edit FIXED', 
            'href' => $editedurl, 
            'meta' => array(
                'class' => 'elementorfix', 
                'title' => 'Elementor Edit FIXED'
                )
        );
        $wp_admin_bar->add_node($args);
    }
    add_action('admin_bar_menu', 'custom_toolbar_link', 10);

    It will show up on the most left side of the admin bar and will work like the normal button does.

    Thanks and I hope it comes useful! ??

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Missing “Edit with Elementor” SOLUTION / FIX’ is closed to new replies.