• Resolved joeborders

    (@joeborders)


    Hello! I just had my first ads expire and some people are getting confused about the placement of the renew button. It looks like you have to push the “more” button to find it.
    It looks like there is plenty of space to include the renew button next to the other ones. Is there a way to display this without users having to click the “more” button?
    Thanks Greg! ^_^

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    yes, it is possible to move the Renew button. If i remember correctly you are using the Payments module to accept payments, if so then you can move the “Renew Ad” button next to View, Edit, Delete buttons by adding the code below in your theme functions.php file

    
    add_action( "init", "init_renew_button", 1000 );
    function init_renew_button() {
        remove_action( "adverts_sh_manage_actions_more", "adext_payments_action_renew" );
        add_action( "adverts_sh_manage_actions_left", "adext_payments_action_renew" );
    }
    
    Thread Starter joeborders

    (@joeborders)

    Awesome! Thanks Greg! ^_^

    Hey Greg,

    Is it possible to do the same as you advised Joe if I’m using the Woocommerce payment addon?

    Many Thanks

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    yes, if you are using the WooCommerce integration then to move the Renew button please use the code below instead

    
    add_action( "init", "init_renew_button", 1000 );
    function init_renew_button() {
      remove_action( "adverts_sh_manage_actions_more", "adext_wc_payments_action_renew" );
      add_action( "adverts_sh_manage_actions_left", "adext_wc_payments_action_renew" );
    }
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can I remove the “more” button?’ is closed to new replies.