Watch videos with subtitles in your language, upload your videos, create your own subtitles! Click here to learn more on "how to Dotsub"

Updating a Theme

0 (0 Likes / 0 Dislikes)
Updating a Theme with Joe Shindelar This tutorial covers how to update a contributed theme by using the administrative interface and running the database update scripts or by using Drush. By the end of this tutorial, you'll know how to update a contributed theme on your site and how to run the database updates script. Before doing this, you should make sure that you've got a contributed theme that's been installed and there's an update available for it, that you've got a development version of your site you can test this on first, that you've created a full site backup before proceeding on the live site. If you want to use the user interface to make the updates, the core Update Manager module must be installed. And finally, if you want to use Drush, Drush must be installed. See the written version of this tutorial for links to each of these prerequisites. Note that if you're using Composer to manage your site's dependencies, you'll want to follow the tutorial on using Composer to update the code and then come back here for instructions on running the database update script. You can use the administrative interface or Drush to update a contributed theme. If you're updating a custom theme, rather than a contributed theme, or if you see a message saying, "Installing modules and themes requires FTP access to your server," or if the steps below do not work to obtain the new theme files, follow the steps in the tutorial for manual installation and then come back here and continue with the instructions for running the database update script. If you're using the User interface, start by putting your site in to maintenance mode. In the Manage administration menu click Configuration and then under Development click on Maintenance mode. Check the box Put site into maintenance mode and click Save configuration. Once the site is in maintenance mode, in the Manage administrative menu navigate to Reports, Available updates, and then Update. This will show you a list of any modules or themes that need updating. Find the theme that you want to update in the list and check the box. Then click Download these updates. On the next page, click Continue. Once that's completed, click on Run database updates. If you obtain the new theme files manually or via Composer, start with this step and reach the database updates page by navigating to the update.php script in your browser. Once here, click Continue to run the database updates if there are any. In this case there are no updates to run so I'm automatically taken to the final step where I can click Administration pages in order to return to the administration section of my site. Now, you can go ahead and take your site out of maintenance mode by clicking on Go online, unchecking Put site into maintenance mode and then clicking Save configuration. Finally, for good measure, it's always a good idea to clear the cache. Alternatively, you can use Drush to update a theme. Start by finding the project name for the theme you wish to update, which is the last segment of the theme's project page URL. For example, if you're at drupal.org/project/mayo, mayo here is the project name. Once you know the project name, in your terminal, run the Drush command drush pm-update and the name of the theme that you would like to update, in this case mayo. Run the command and then follow any instructions on the screen. The drush pm-update command will automatically run any database updates if required. In this tutorial, we learned how to update a contributed theme using the user interface provided by the Upgrade Manager module or alternatively, using the Drush pm-update command.

Video Details

Duration: 3 minutes and 39 seconds
Country: United States
Language: English
License: All rights reserved
Genre: None
Views: 1
Posted by: drupalizeme on Dec 1, 2017

Updating a Theme

Caption and Translate

    Sign In/Register for Dotsub to translate this video.