visual-framework / vf-wp

WordPress theme and plugins for Visual Framework integration
3 stars 6 forks source link

Help installing vf-wp theme in new Wordpress install #1259

Open superchromix opened 1 year ago

superchromix commented 1 year ago

Hi,

I'd like to test the vf-wp theme, but the documentation isn't so clear about how to install the theme within wordpress. For example, I downloaded the latest release from the Github "releases" page. On the wordpress admin page, there is an option for uploading a new theme, with the instruction "If you have a theme in a .zip format, you may install or update it by uploading it here.". I tried uploading the zip file which I had downloaded (vf-wp-2.3.5.zip). However, wordpress gives me an error message: "The uploaded file exceeds the upload_max_filesize directive in php.ini."

Am I doing this correctly? Is there an updated documentation file available somewhere?

Thanks!

sandykadam commented 1 year ago

Hi @superchromix

This VF WordPress is specific to our organization's needs only. Also, we use composer way to set up our websites, plugins/themes which are in this repo, most of them are purely for our organization's use purpose, you might have to create a custom theme/plugin based on your requirement and using VF HTML.

Following is the example of creating a code package using the composer we use.

{
  "name": "projects/your-project-name",
  "description": "Your desc",
  "type": "project",
  "require": {
    "composer/installers": "^1.2",
    "drupal-composer/preserve-paths": "^0.1.4",
    "wordpress/wordpress": "6.1.1",
    "vfwp/vf-plugins": "dev-master",
    "vfwp/vf-themes": "dev-master",
    "wpackagist-plugin/user-role-editor":"4.63.3",
    "wpackagist-plugin/ga-google-analytics":"20230306",
    "wpackagist-plugin/wordpress-seo":"20.11"
  },
  "repositories":[
    {
      "type":"composer",
      "url":"https://wpackagist.org"
    },
    {
      "type": "package",
      "package": {
        "name": "wordpress/wordpress",
        "type": "webroot",
        "version": "6.1.1",
        "dist": {
          "type": "zip",
          "url": "https://github.com/WordPress/WordPress/archive/6.1.1.zip"
        },
        "require": {
          "fancyguy/webroot-installer": "^1.0"
        }
      }
    },
    {
      "type": "package",
      "package": {
        "name": "vfwp/vf-plugins",
        "version": "dev-master",
        "type": "wordpress-plugin",
        "dist": {
          "url": "https://s3.eu-west-2.amazonaws.com/origin.vfwp.emblstatic.net/vf-wp/v2.3.5/plugins.zip",
          "type": "zip"
        }
      }
    },
    {
      "type": "package",
      "package": {
        "name": "vfwp/vf-themes",
        "version": "dev-master",
        "type": "wordpress-theme",
        "dist": {
          "url": "https://s3.eu-west-2.amazonaws.com/origin.vfwp.emblstatic.net/vf-wp/v2.3.5/themes.zip",
          "type": "zip"
        }
      }
    }
  ],
  "config": {
    "secure-http": false,
    "allow-plugins": {
      "composer/installers": true,
      "fancyguy/webroot-installer": true,
      "drupal-composer/preserve-paths": true
    }
  },
  "extra": {
    "webroot-dir": "dist",
    "webroot-package": "wordpress/wordpress",
    "installer-paths": {
      "dist/wp-content/plugins/": ["vfwp/vf-plugins"],
      "dist/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
      "dist/wp-content/themes/": ["vfwp/vf-themes"],
      "dist/wp-content/themes/{$name}/": ["type:wordpress-theme"]
    },
    "preserve-paths": [
      "dist/wp-content/themes/your-custom-theme",
      "dist/wp-content/plugins/your-custom-plugin"
    ]
  }
}

Hope this helps.