How can I change what can be uploaded?

WordPress Business Themes Forums Responsive Themes Dating Theme How can I change what can be uploaded? Reply To: How can I change what can be uploaded?

WordPress Business Themes Forums Responsive Themes Dating Theme How can I change what can be uploaded? Reply To: How can I change what can be uploaded?

  • JamesD
    JamesD
    Super Guru 1,290 points

    @Robert,

    You should be able to re-create/copy some of the template files & directories in order to make custom changes.

    I’ve tried to come up with a quick/easier/safer way that one could accomplish tasks like this with core template files. This process should work with other themes as well.

    This method will not be overwritten when the theme updates. You’ll just need to make sure to update your custom template pages whenever the default theme template is updated (only if the default template file had changed).

    The easiest way would probably be something like this….
    Note: The attached file contains the folders/files created from the above steps. You can unzip and then upload them directly in your child theme directory or create them manually. This will not work by placing them in the default child theme directory.

    You’ll need the minimal files to accomplish this. First, create a similar directory structure in your child theme directory. I’ll refer to this as YOUR_CHILDTHEME in the example.

    1. /YOUR_CHILDTHEME/framework/parts/
      create a framework directory.
      Once created add a sub-directory parts inside the /YOUR_CHILDTHEME/framework directory you just created.
    2. Place a copy of two files, /DA9/framework/parts/add-form-main.php and /DA9/framework/parts/add-form-media.php, into the /YOUR_CHILDTHEME/framework/parts/ sub-directory you just created. The add-form-media.php is the one you want to edit to change the text.
    3. Now, create a templates directory:
      /YOUR_CHILDTHEME/templates
      Place a copy of the /DA9/templates/tpl-add.php file into the parts sub-directory you just created.

    *** Note ***
    In order to achieve this “easier” method, the child theme must be an actual child theme and not the built-in default child theme (i.e. ‘_dating’ for DA9). It is possible to do, but additional changes would be required and may not be worth extra headaches.

    Keep in mind that this is just the basic setup for it and additional changes (i.e. re-styling some sections) may be required if anything breaks after a change is made.

    Attachments:
    You must be logged in to view attached files.
    February 21, 2019 at 6:10 am
  • Didn't find what you were after?

    Chat with us now

    or contact our support team