Results 1 to 4 of 4

Thread: How to change where the Vantage Listing Button Widget links to...

  1. #1
    Forum Member rawearthman's Avatar
    Join Date
    May 2012
    Posts
    38
    Thanks
    7
    Thanked 2 Times in 1 Post

    How to change where the Vantage Listing Button Widget links to...

    I am wondering where in the code below I can add a link to where this widget directs people? I am currently using a different plugin for the registration process than the Vantage page.

    class VA_Widget_Create_Listing_Button extends WP_Widget {


    function __construct() {
    $widget_ops = array(
    'description' => __( 'A button for creating a new listing', APP_TD )
    );


    parent::__construct( 'create_listing_button', __( 'Vantage - Create Listing Button', APP_TD ), $widget_ops );
    }


    function widget( $args, $instance ) {
    extract( $args );


    $url = va_get_listing_create_url();


    if ( is_tax( VA_LISTING_CATEGORY ) )
    $url = add_query_arg( VA_LISTING_CATEGORY, get_queried_object_id(), $url );


    echo $before_widget;
    echo html_link( $url, __( 'Add a Listing Now', APP_TD ) );
    echo $after_widget;
    }

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,010
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Newbie jgooch's Avatar
    Join Date
    Sep 2013
    Location
    United States
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    877
    Thanks
    12
    Thanked 358 Times in 261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using Widget-Logic with Vantage?
    By barateau in forum Report Vantage Bugs (Legacy)
    Replies: 3
    Last Post: June 13th, 2012, 11:32 AM
  2. How can i add/enable the 'add a business now' button in vantage?
    By harry0013 in forum Vantage General Discussion (Legacy)
    Replies: 1
    Last Post: June 2nd, 2012, 12:27 AM
  3. Vantage Thumbnail Listing
    By classifiedstheme in forum Report Vantage Bugs (Legacy)
    Replies: 8
    Last Post: May 4th, 2012, 02:58 AM
  4. Delete create an account button on homepage widget
    By jpartner in forum ClassiPress General Discussion
    Replies: 2
    Last Post: December 1st, 2011, 12:18 PM