hide title, description and keyword fields?

  • Lauren
    Lauren
    Newbie
     
    28 points

    Hello,
    I have a general question about all themes.

    Any way to hide the title, description and keyword mandatory fields area under “Add listing” on /add-listing page so that I can add my own custom fields there?


    Josh
    Josh
    Super Guru
     
    13,887 points

    Hello Lauren,
    The fields are required hence you will first have to disable this by editing theme core files then use a css code to hide them.You can also remove them directly when editing the theme core files


    Lauren
    Lauren
    Newbie
     
    28 points

    Thanks..Can you give me an idea of what pages/templates I need to change to make fields non-required. I have found out how to delete the fields from the form.


    Josh
    Josh
    Super Guru
     
    13,887 points

    Theme core files

    This reply was awarded the best answer by the topic poster.

    Lauren
    Lauren
    Newbie
     
    28 points

    sorry to be a pest, but when you mean core files do you mean css.core.css?


    Josh
    Josh
    Super Guru
     
    13,887 points

    Hello Lauren,
    By theme core files I mean the files located in your theme files under the folder framework >class


    Lauren
    Lauren
    Newbie
     
    28 points

    I have very little php experience and all your help is greatly appreciated. I just need to know what file to edit in the framework>>class. I am searching for “description” “title” and “validation” in all of these files and I cannot find exactly where form validation for these fields takes place


    Josh
    Josh
    Super Guru
     
    13,887 points

    Hello Lauren,
    Please post here >>www.premiumpress.com/designwork/


    Jason
    Jason
    Titan
     
    729 points

    I added all this into here and worked, BUT i need to know how to stop the DESCRIPTION section from being Mandatory field please otherwise hiding the DESCRIPTION section wont work, keeps asking to complete yet we have hidden it

    Add here: Theme Setup>General Setup>Custom CSS/Javascript

    textarea.form-control {
    display: none;
    }
    input#form_post_tags.form-control {
    display: none;
    }
    div.row.uploadiconbox {
    display: none;
    }

    div#form-row-rapper-post_content.form-group.clearfix.col-md-12 {
    display: none;
    }

    div#textarea_feedback {
    display: none;
    }

    div#panel_section4.panel.panel-default {
    display: none;
    }


    Josh
    Josh
    Super Guru
     
    13,887 points

    Hello Jason,
    Please access the file Appearance >add-form.php remove below code


    if(de3.value == ''){
    alert('<?php echo $CORE->_e(array('validate','0')); ?>');
    de3.style.border = 'thin solid red';
    de3.focus();
    colAll(); jQuery('.stepblock2').collapse('show');
    return false;
    }


    Jason
    Jason
    Titan
     
    729 points

    That yrs works but,

    May Kindly ask, how to stop the TITLE from being Mandatory pls Josh buddy ?

    I couldnt seem to do it in add-form, unless I wasnt doing it correctly


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

You must be logged in to reply to this topic.