This wiki is for the exclusive use of my friends and colleagues. Account creation and anonymous editing have been turned off.

If you are a friend or colleague of mine, and would like to participate in this project, please send me a message.

If you find these pages useful, please donate to help cover server costs. Thanks!

Atticus Finch Child Theme

From OdleWiki

Atticus-finch-outline.png

Atticus Finch Theme
A monochrome theme for WordPress


Customization via a Child Theme

Atticus Finch has a child theme available which allows you to easily add or change functions and styles. (You should never edit a theme's files directly. Always use a child theme.) Here's how to install it.

Upload the Child Theme to Your WordPress Install

First, get the child theme:

  1. Download the child theme from this link: https://github.com/kjodle/atticus-finch-child/archive/master.zip
  2. Save the file (atticus-finch-master.zip) to whichever location on your computer you prefer.

Uploading the Child Theme via the WordPress Backend

  1. On your website, navigate to Appearance => Themes.
  2. Click the "Add New" button at the top
    .Af-child-theme-002.png
  3. Click the "Upload Theme" button at the top
    .Af-child-theme-003.png
  4. Click "Choose File" and select the child theme .zip file.
  5. Click "Install Now".
  6. After a moment, you should see a message similar to this one:
    Af-child-theme-004.png
  7. Click "Activate". You can now edit the child theme's style.css and functions.php from the theme editor (Appearance => Editor).

Uploading the Child Theme via FTP

  1. Save the file (atticus-finch-master.zip) to whichever location on your computer you prefer.
  2. Rename the folder "atticus-finch-child-master" to "atticus-finch-child". (This step is optional.)
  3. Unpack the .zip archive. Delete the .gitignore and <tt.gitattribute files.
  4. Login to your site via FTP. (If you do not know your FTP login credentials, you will need to contact your web host.)
  5. Navigate to "/wp-content/themes/" directory:
    Af-child-theme-005.png
  6. Upload the "atticus-finch-child" folder to your "/wp-content/themes/" directory.
  7. On your website, navigate to Appearance => Themes.
  8. Activate the "Atticus Finch Child" theme. You can now edit the child theme's style.css and functions.php from the theme editor (Appearance => Editor), or you can edit them locally and upload them via FTP.

Changing Styles via the Child Theme

The child theme will automatically load its own style sheet in /atticus-finch-child/style.css. You can add your own styles or override any theme styles there.

If you need to change mobile styles, go to the child theme's /atticus-finch-child/functions.php and uncomment the mobile line. In other words, change this:

<code>
	/* If you need to make changes to the child theme's mobile styles, uncomment the following line and edit the child theme's '/styles/mobile.css' file. */
//	wp_enqueue_style( 'atticus-finch-child-mobile-style', get_stylesheet_directory_uri() . '/styles/mobile.css', 'atticus-finch-mobile', wp_get_theme() -> get( 'Version' ), 'screen and (max-width: '. get_theme_mod( 'atticus_finch_mobile_breakpoint' ) . 'px)' );
</code>

to this:

<code>
	/* If you need to make changes to the child theme's mobile styles, uncomment the following line and edit the child theme's '/styles/mobile.css' file. */
	wp_enqueue_style( 'atticus-finch-child-mobile-style', get_stylesheet_directory_uri() . '/styles/mobile.css', 'atticus-finch-mobile', wp_get_theme() -> get( 'Version' ), 'screen and (max-width: '. get_theme_mod( 'atticus_finch_mobile_breakpoint' ) . 'px)' );
</code>

The child theme will now load /atticus-finch-child/styles/mobile.css. Make your mobile changes there. (Note: These changes will only apply when the mobile version of the theme is loaded, as set in the [| mobile theme options].

You can also edit menu styles and print styles by making similar changes.

Note: Any time that you change the child theme, you should update the Version: number in style.css. By doing so, you ensure that the latest version of your child theme style sheets will load, rather than pulling the old versions out of either a server or browser cache.