Page 1 of 2 12 LastLast
Results 1 to 10 of 16
Like Tree6Likes

Thread: Create a Sidebar and Widgets for Vantage "Create Listing", "Order Page" and More

  1. #1
    Thread Starter
    luxor's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    599
    Thanks
    8
    Thanked 141 Times in 74 Posts

    Create a Sidebar and Widgets for Vantage "Create Listing", "Order Page" and More

    Not sure why there's no sidebar for these pages as they are great for "satisfaction guaranteed" badges, additional information upon registering, PayPal/Authorize.Net authentication, etc...

    I highly suggest creating a child-theme because we are going to edit a custom functions.php file (http://docs.appthemes.com/tutorials/...functionality/)

    This modification is relatively easy as it requires just a few steps:

    This example will create a sidebar for the "create-listings" page. Just replicate it to create additional sidebars for other pages of the theme.



    1. Open your custom functions.php file and enter the following:

    PHP Code:
    if ( function_exists('register_sidebar') ) {
    register_sidebar(array(
    'name' => 'Create Listing Sidebar',
    'id' => 'listing-sidebar',
    'description' => 'Appears as the sidebar on the add listing page',
    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    'after_widget' => '</aside>',
    'before_title' => '<div class="section-head"><h3>',
    'after_title' => '</h3></div>',
    ));



    2. Duplicate the original vantage/create-listings.php file, take the duplicate and paste it into your child theme, open it and replace the entire file with the following:

    PHP Code:
    <?php
    /**
     * Template Name: Create Listing
     */
     
     
    ?>


    <?php

    the_post
    ();

    appthemes_load_template'form-listing.php', array(
        
    'title' => get_the_title(),
        
    'listing' => va_get_default_listing_to_edit(),
        
    'action' => __'Next Step'APP_TD ),
        
    'form_action' => va_get_listing_create_url(),
        
    ) ); 
    ?>


    <div id="sidebar" class="threecol last">
    <?php get_sidebar('listing'); ?>
    </div>


    3. Create a file called - "sidebar-listing.php"

    Enter the following code and upload it:

    PHP Code:
    <?php
          
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('listing-sidebar') ) :
          endif; 
    ?>

    4. That's it! Now just visit your widgets page and you should see a new sidebar area called - "Add/Create Listing". Just drop whatever you want into the side bar and view your create-listing page to see the upgrade!


    Would be nice if the developers included this in the next update since these pages look odd without a sidebar!
    tcarter, tbase, samcy and 2 others like this.

  2. The Following 7 Users Say Thank You to luxor For This Useful Post:

    akemx (April 6th, 2013), archersoftech (May 10th, 2013), danielpwms (May 25th, 2013), gonesmith (April 5th, 2013), sistiri (April 21st, 2013), tbase (August 22nd, 2013), tcarter (April 5th, 2013)

  3. #2
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  4. #3
    Thread Starter
    luxor's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    599
    Thanks
    8
    Thanked 141 Times in 74 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Attached Images Attached Images

  5. #4
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  6. #5
    Veteran tbase's Avatar
    Join Date
    Feb 2010
    Location
    Idaho
    Posts
    2,018
    Thanks
    246
    Thanked 67 Times in 64 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    [CENTER]


    TreasureValleyBusiness.com

    [/CENTER]

  7. #6
    Thread Starter
    luxor's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    599
    Thanks
    8
    Thanked 141 Times in 74 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    tbase likes this.

  8. #7
    Expired Customer sistiri's Avatar
    Join Date
    Apr 2013
    Location
    Australia
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #8
    Expired Customer hopfoto's Avatar
    Join Date
    Oct 2012
    Location
    NYC
    Posts
    954
    Thanks
    37
    Thanked 125 Times in 118 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #9
    Thread Starter
    luxor's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    599
    Thanks
    8
    Thanked 141 Times in 74 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. The Following User Says Thank You to luxor For This Useful Post:

    danyz (June 10th, 2013)

  12. #10
    Expired Customer thedesignguys's Avatar
    Join Date
    Feb 2013
    Location
    United Kingdom
    Posts
    18
    Thanks
    8
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How Was This Cool "Create Listing" Page Made??
    By curtis in forum Vantage General Discussion (Legacy)
    Replies: 9
    Last Post: May 2nd, 2013, 12:47 AM
  2. Create checkbox list of tags on "Create Listing"
    By sota35 in forum Vantage General Discussion (Legacy)
    Replies: 3
    Last Post: March 15th, 2013, 10:34 AM
  3. Widgets for "Select a Plan" and order page?
    By luxor in forum Vantage General Discussion (Legacy)
    Replies: 1
    Last Post: March 8th, 2013, 01:17 AM
  4. I want to add captch images validation on "create-listing" page.
    By devendra in forum WordPress General Discussion
    Replies: 1
    Last Post: January 25th, 2013, 08:27 AM
  5. Replies: 3
    Last Post: September 20th, 2012, 11:19 AM