Skip to content
Custom Wordpress Theme for Portfolio Site
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
acf-json
config
images
inc
lib
partials
.gitignore
.gitmodules
404.php
LICENSE
README.md
admin.css
admin.js
archive-custom_built_tools.php
archive-projects.php
archive.php
attachment.php
comments.php
content.php
footer.php
front-page.php
functions.php
generic-archive-template.php
header.php
image.php
index.php
main.js
nav.php
page-under-construction.php
page.php
screenshot.png
sidebar-everypagetop.php
sidebar-homepage.php
sidebar-innercontentmain.php
sidebar-underpost.php
single.php
style-deferred.css
style-final-head.css
style.css
taxonomy-project_types.php

README.md

joshuatzwp / joshuatz-wp

Custom WordPress theme for joshuatz.com


Instructions

Install

  • There is currently no real setup required other than activating the theme

Optional Settings

  • Optional settings:
    • Theme Settings Page (Dashboard -> Settings -> joshuatz-wp):
      • Google Analytics GA ID - this should be the analytics ID provided by Google Analytics. Should follow format of UA-12345678-01
      • Disqus Custom Subdomain - For if you have Disqus setup and want to enable their comment embed system
    • Custom redirect system
      • You can configure a bunch of pattern based custom redirects with a simple JSON file, rather than having to install a special plugin. Clone jtzwp-custom-redirects.example.json and name as jtzwp-custom-redirects.json and place either in theme directory OR root of WP install - theme will check for both, and take root as preference.
    • "Under Construction" mode
      • You can easily set the site into under-construction mode, which will redirect all non-wp-admins to /under-construction/ for every single page. You don't have to set up the /under-construction/ page to use this feature. To enable, simply define the UNDER_CONSTRUCTION constant to be true (easiest spot is in your wp-config.php file) like so:
        define('UNDER_CONSTRUCTION',true);
        
        • This should be used with extreme caution, as leaving the site in this mode for an extended length of time can have a negative effect on SEO (not to mention a bad user experience).

Recommended plugins and tweaks

  • Recommended Plugins
  • Recommended core tweaks
    • Dynamically define WP_SITEURL and WP_HOME in wp-config.php - see this
    • Reduce the number of revisions that wordpress keeps (default is infinity!)
      define( 'WP_POST_REVISIONS', 3);
      
      • Make sure that you put this above
      require_once(ABSPATH . 'wp-settings.php');
      
      • I recommend just putting at top of file
    • Here is a pretty good list of optimizations to make from the default config - link

ToDo

  • Create mapping system for loading scripts / styles
    • Add async support to script queue
    • Add SRI attribute support to script queue
  • Redo nav and change from hardcoded to more dynamic based on native WP menu
    • Optionally, integrate Materialize walker version
  • Add Gutenberg support (color palettes, blocks, etc.)
  • Add support for the AMP spec version of pages/posts
You can’t perform that action at this time.