Skip to content

openmindculture/wp-fasto-child-theme

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

wp-fasto-child-theme

minor theme modifications for using fasto on open-mind-culture.org

screenshot

Modifications

  • text 404 without "oh boy"
  • instant focus in search input
  • footer "made by" => "theme made by"
  • footer only 2 columns
  • modified poster image style
  • mobile header more calm and compact
  • accessibility: darker default font for better readability
  • modified category colors
  • new web fonts
  • new and experimental CSS features as progressive enhancement
  • utility classes for custom layout

optional web fonts (non-free)

  • optional MyFontsWebfontsKit NOT free to use!
  • (TODO fix wp_dequeue_style and remove action unloading obsolete web fonts from google; workaround: deactivate enqueuing in parent theme)

The optional web fonts, Healthy Freak by Oleg Voznyy, and Liebe Ruth by Ulrike Rausch have been purchased by Ingo Steinke via MyFonts.com (Order # M12889860, Webfont Build ID 4424710).

While wp-fasto-child-theme is distributed under the GPL license,the optional MyFontsWebfontsKit is not covered by the GPL and may not be used on other websites without a valid license.

Installation

  • create or download a zip archive of the directory fasto-child
  • open WordPress administration (usually /wp-admin)
  • open themes page
  • add theme by uploading zip file
  • activate theme

Development

docker-compose up

Wait until WordPress and themes have been installed, then you should see something like

local-wp-cli | Success: Installed 1 of 1 themes. local-wp-cli exited with code 0

Open wp-admin in your browser:

http://localhost:8000/wp-admin

Log in with user admin and password secret.

Go to Appearance -> Themes.

Optional manual setup

  • Install WordPress
  wp core install 
    --path="/var/www/html" 
    --url="http://localhost:8000" 
    --title="Local Wordpress By Docker" 
    --admin_user=admin 
    --admin_password=secret 
    --admin_email=test@example.com;
  • Install themes

either use the CLI

  wp theme install --activate fasto;

or

  • checkout the original fasto theme as parent theme into /themes/fasto (download from WordPress plugin page or, with subversion installed:
cd wordpress/themes
svn co https://themes.svn.wordpress.org/fasto/1.5.6/ fasto
  • mount the themes folder into a local WordPress docker container

Optional: Install WordPress Plugins

Inside your WordPress docker container, you can use wp-cli ...

docker-compose run --rm cli bash
cd /var/www/html/

... to install any plugin like, for example, Yoast SEO:

./wp-cli.phar plugin install wordpress-seo # Yoast SEO

Copy Content

Create or copy relevant content e.g.footer widgets, more articles etc.

Child Theme Development Resources

developer.wordpress.org/themes/advanced-topics/child-themes/