victor

Customizing the Add Listing Section

In the add listing section, there is the media space, description, category and location. My question is which file do i need to edit because i want the category section to appear second after the media space. I checked the theme files and they are separated in the templates area when you only want to edit one section: DA9/templates/add-form categories.php, DA9/templates/add-form location.php, etc. Where is the main file grouping these 4 in that particular order? E.g. i want mine to look like this: media space, category, description then last location.

Created: December 26, 2019 at 8:41 am
  • In: Dating Theme
  • Started by: victor
  • 5 members left 8 comments
  • Last reply from: chrisparks


  • victor
    December 27, 2019 at 11:45 am

    Found it.


  • Dave
    January 6, 2020 at 4:39 am

    Can you share where you found it please.


  • Ms
    February 7, 2020 at 7:13 am

    I am confused by the question above 😀 😛


  • Dan
    February 10, 2020 at 3:29 pm

    I’m looking for the same thing… Where did you find it?


  • Dan
    February 10, 2020 at 5:58 pm

    I believe the files are:
    wp-content/themes/DT9/
    wp-content/themes/DT9/
    wp-content/themes/DT9/
    wp-content/themes/DT9/
    wp-content/themes/DT9/
    wp-content/themes/DT9/
    wp-content/themes/DT9/

    With being the one that groups the others together.
    I think it best to play with these in a child theme.


  • victor
    February 12, 2020 at 11:09 am

    Yes its the it works fine with main theme.

  • Mizanur
    Mizanur
    April 1, 2020 at 6:07 pm

    Hi,

    What did you do to to rearrange the order?


  • chrisparks
    April 7, 2020 at 2:48 am

    Dan called it up above. Be sure to make a child theme first! I am not responsible for you messing up your instance! I should note I am on Version
    I also added the code changes as txt attachments.
    In my case, I needed category selection to occur before description you have to switch the order in for example here I switched categories to occur before details (Compare this to yours)

    <div id=”MAINCONTAINER”>

    <div id=”accordion”>
    <?php get_template_part(‘templates/add’, ‘form-media’ ); ?>
    <?php get_template_part(‘templates/add’, ‘form-categories’ ); ?>
    <?php if(THEME_KEY == “mj”){ ?>
    <?php get_template_part(‘_micro/micro’, ‘form-addons’ ); ?>
    <?php } ?>
    <?php get_template_part(‘templates/add’, ‘form-details’ ); ?>
    <?php if(defined(‘GOOGLE-MAPS’) && _ppt(‘default_listing_map’) == 1 ){ ?>
    <?php get_template_part(‘templates/add’, ‘form-location’ ); ?>
    <?php } ?>
    <?php if(in_array(THEME_KEY, array(‘dt’,’rt’,’ct’,’at’,’mj’,’so’))){ ?>
    <?php get_template_part(‘templates/add’, ‘form-youtube’ ); ?>
    <?php } ?>

    </div>

    But this is not all…

    You will need to go into

    and look for “collapse” then change it to the right number. So for example below, I changed “headingOne to headingTwo and collapseOne to collapseTwo
    I also had to go to the and change it from headingTwo to headingOne and collapseTwo to collapseOne. Get the idea? These are the re-order points. Good luck!

    <div class=”<?php if(defined(‘IS_MOBILEVIEW’) ){ }else{?>card rounded-0<?php } ?>” <?php if($categories_count == 0){ ?>style=”display:none”<?php } ?>>
    <div class=”card-header” id=”headingTwo”>
    <h5 class=”mb-0″>
    <button class=”btn btn-link btn-block text-left text-uppercase font-weight-bold text-dark collapsed” data-toggle=”collapse” data-target=”#collapseOne” aria-expanded=”false” aria-controls=”collapseOne”>
    <?php echo __(“Category”,”premiumpress”); ?> <span id=”SelCountPre”>( <span id=”SelCatCount”>0</span> / <span class=”ppmaxcats”>0</span>)</span>
    </button>
    </h5>
    </div>
    <div id=”collapseOne” class=”collapse” aria-labelledby=”headingOne” data-parent=”#accordion”>
    <div class=”<?php if(defined(‘IS_MOBILEVIEW’) ){ ?>mt-3<?php }else{?>card-body<?php } ?> add-listing-form”>

    Attachments:
    You must be logged in to view attached files.

Viewing 9 posts - 1 through 9 (of 9 total)