Results 1 to 8 of 8

Thread: Plugin code modifications to classipress?

  1. #1
    Thread Starter
    Expired Customer hzmhzm's Avatar
    Join Date
    Jan 2019
    Posts
    354
    Thanks
    125
    Thanked 7 Times in 7 Posts

    Plugin code modifications to classipress?

    I am wondering if making changes to codes given in the plugin instructions is the same as making modifications to Classipress? Could you please help to check it? I do not plan to modify the code in the theme folder as I want to upgrade the classipress to a newer version in the future. I have written down below the instructions given in the "search custom field" plugin I purchased.

    "If you plan to make any modifications to ClassiPress 4.x, you should always do it with a child theme. Never modify the code in the theme folder. It will almost always result in problems in the future." -Classipress


    3. Go to 'Appearance>Editor' menu and select your ClassiPress theme on the dropdown 'Select theme to edit:'
    4. You'll see the theme files on the right column. Click on the 'search.php' file to edit.
    5. Open the patch file (included) 'search.php_patch.txt' and copy&paste the content just after <div class="content_left"> and before <?php if ( have_posts() ) : ?> similar to this:
    (...) <div class="content_left">
    <?php if ($_GET['search-class']) {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts(array('caller_get_posts' => 1, 'paged'=>$paged));
    } ?>
    <?php if ( have_posts() ) : ?> (...)
    6. We're done! Now, you can configure your search plugin to include advanced search in your website.

  2. #2
    Moderator ovidiubica's Avatar
    Join Date
    Mar 2011
    Posts
    5,749
    Thanks
    240
    Thanked 1,061 Times in 999 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. The Following User Says Thank You to ovidiubica For This Useful Post:

    hzmhzm (January 31st, 2019)

  4. #3
    Thread Starter
    Expired Customer hzmhzm's Avatar
    Join Date
    Jan 2019
    Posts
    354
    Thanks
    125
    Thanked 7 Times in 7 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #4
    Thread Starter
    Expired Customer hzmhzm's Avatar
    Join Date
    Jan 2019
    Posts
    354
    Thanks
    125
    Thanked 7 Times in 7 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #5
    Moderator ovidiubica's Avatar
    Join Date
    Mar 2011
    Posts
    5,749
    Thanks
    240
    Thanked 1,061 Times in 999 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. The Following User Says Thank You to ovidiubica For This Useful Post:

    hzmhzm (February 1st, 2019)

  8. #6
    Thread Starter
    Expired Customer hzmhzm's Avatar
    Join Date
    Jan 2019
    Posts
    354
    Thanks
    125
    Thanked 7 Times in 7 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #7
    Moderator ovidiubica's Avatar
    Join Date
    Mar 2011
    Posts
    5,749
    Thanks
    240
    Thanked 1,061 Times in 999 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. The Following User Says Thank You to ovidiubica For This Useful Post:

    hzmhzm (February 3rd, 2019)

  11. #8
    Thread Starter
    Expired Customer hzmhzm's Avatar
    Join Date
    Jan 2019
    Posts
    354
    Thanks
    125
    Thanked 7 Times in 7 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. [MOD NEEDED] Classipress Ribbons plugin custom code
    By sreenubfa in forum ClassiPress General Discussion
    Replies: 0
    Last Post: December 13th, 2015, 03:34 AM
  2. [SOLVED] ClassiPress: Coupon code plugin not working properly
    By amersvoort in forum AppThemes Coupons
    Replies: 24
    Last Post: November 1st, 2013, 01:55 PM
  3. ClassiPress: Coupon code plugin not working properly
    By amersvoort in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: May 2nd, 2013, 11:51 AM