darkglobeinteractive/singular-theme-webpack
Run the following command to remove the origin for the repository:
$ git remove rm origin
You will want to remove this from .gitignore because you will definitely want to be pushing these to the server.
mmenu is used to handle the mobile menus in this theme. Documentation can be found here
Located in admin menu:
Admin > Appearance > Menus
- Create "Main Menu"
- Add something to the menu tree so it appears correctly on the front-end
- Assign the new menu to the Manage Locations > Main Menu Navigation theme location
Advanced Custom Fields PRO is required by this theme.
- Install "Advanced Custom Fields PRO" and do the following:
- Add ACF Pro license and update plugin
- After activating ACF Pro license, edit and save all field groups
- Double-check the Settings > Show this field group if... settings for each block
- Double-check the need to sync the field groups
- Install "Filebird" (https://wordpress.org/plugins/filebird/)
- Install "Yoast SEO" (https://wordpress.org/plugins/wordpress-seo/)
- Change the default separator to a pipe so it matches the
header.phptitle separator -or- change theheader.phptitle separator to a hyphen - Add site name and image to the Yoast SEO admin
- Remove sitemap page and template file if using Yoast SEO
- Change the default separator to a pipe so it matches the
- Install "ACF Content Analysis for Yoast SEO" (https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/)
- Install "Redirection" (https://wordpress.org/plugins/redirection/)
- Add redirect from /user to /wp-admin
- Install "Wordfence"
- Send license information to hello@clientaddress
- Request Google reCAPTCHA keys and install them
- Admin > Wordfence > Login Security > Settings > reCAPTCHA section
- Set brute force login limit to 5 attempts:
- Admin > Wordfence > Firewall > All Firewall Options > Brute Force Protection
- Global Options > Global Images (tab): Upload a default image for use in each scenario
- Create a Block Pattern Guide and use the code in /configuration/code/block-pattern-guide.html to create it
- Modify this as needed to get page to display
- Create search form page and update template file to reflect page ID
- If you're not using Yoast SEO, create the sitemap page and update template file (page-search.php) to use page ID (page-[id].php)
- If you ARE using Yoast SEO, delete the sitemap page template
- Create home page and use customizer to set this page to the front page
- Delete existing widgets
- Update the image located at /singular-theme/img/login-logo.png
- Modify the styles at /singular-theme/css/login.css
- The Settings > Reading blog listing is limited to 3 items for testing purposes. The custom WP_Query post limit must match this for the blog listing to display the desired number of items.
- Disable admin-based Theme Editor (Appearance > Theme Editor)
- In wp-config.php file ==
define('DISALLOW_FILE_EDIT', true);
- In wp-config.php file ==
- Double-check that commenting is completely turned-off
Follow these instructions for effectively removing the commenting functionality from the site:
- Goto Admin > Settings > Discussion and uncheck the checkbox for "Allow people to submit comments on new posts"
- Uncomments the following line in functions.php:
include( 'inc/remove-comments.php' );
- Enable the site support section which contains information on the fact that comments have been disabled and how to enable them in necessary. To do this, uncomment the following line in functions.php:
include( 'admin-support/index.php' );
The "Smooth Scrolling" functionality in the /js/global.js file contains a header_height variable.
If a fixed header is used on the site, you'll want to change this from "0" to $('#header').innerHeight() and possibly adjust the scroll_top_padding variable as well.
Custom block patterns should be created and managed via core WordPress functionality in the block editor. There are two blocks which should manually migrated into the block editor. Follow these instructions:
- Update the block pattern category name (
[CLIENT] Patterns) in the following file to use the client name:- Line 12: /block-patterns/block-patterns.php
- Migrate the following block pattern code into the block editor and save as WP Core patterns:
- /block-patterns/blocks/accordion.php
- /block-patterns/blocks/basic-content-wrapper.php
NOTE: Remember to name the block pattern block elements in the block editor before saving.
- Delete the files used in Step #2 from the remote server
At this point, you simply have to add new CSS files for each additional custom block created.
The theme contains a handful of custom blocks.
- Update the name (
[CLIENT] Blocks) of the block category to use the client name in the following file:- Lines 5-6: /blocks/blocks.php
GreenSock is the animation library we'd like to focus on using:
[https://greensock.com/docs/]
To enable GreenSock animation:
- Uncomment the following lines in the config.entry.public array of the webpack.config.js file:
- ./src/scss/animations.scss
- ./src/scss/animations.js
NOTE: This handles the blocks and patterns that are built-into the theme, but you'll definitely need to add/modify/delete these based-on the changes you make.
- Check basic Search and Search Results templating
- Check 404 page templating
- /inc/custom-post-columns.php shows you an example of how to customize the admin post listing columns and headers
The Singular Plugin is included in the repository. Since we've moved the custom accordion block to the block patterns sections, you should not install this plugin.
There are a handful of libraries included in the theme directory in the /libs/ directory.
- Git Location: https://github.com/Accessible360/accessible-slick.git
- Website: https://accessible360.github.io/accessible-slick/
- Notes: This is the accessible version of the slider we've been using for years.
- Git Location: https://github.com/humaan/Modaal
- Notes: We're beginning to try-out this modal library because it's proven to be simpler to use and passes accessibility scans. The /libs/modaal/index.html demos are better than the github information.
Replacing the use of background images with core WordPress responsive images throughout the site. Made these changes for accessibility reasons and compatibility with next gen images down the road.
Extensive default animations were added to handle basic fades, slides and staggers for the existing core sections, block patterns and custom blocks included in the theme.
This was a major update from the original Singular theme project. The entire theme was overhauled in order to use Webpack for asset minification and aggregation.
Miscellaneous tweaks:
- Adding basic styling to search and 404 pages
- Adding autoplay option to multi-slider custom block
- Added starter code for custom admin post columns
- Revised how menus are declared and assigned
- Miscellaneous other tweaks
Major changes were added to the theme over the past few days:
- Admin Support (/admin-support/): The basics are now in-place and ready to use
- Block Patterns (/block-patterns/)
- Custom Blocks (/blocks/): This required enabling the Modaal and Slick Slider libraries out of the box
- Color Patterns (/css/color-palette.css): This requires setting the color palette in multiple places (notes are at the top of the CSS file)
- Global Options: Company info and social media link are now handled via an ACF block and presented in the following template files: - /templates/social-media.php - /templates/vcard.php
- SVG Support (/svg/): First attempt at this. Placing includeable files here for SVG-based icons