Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#78] setting up Goodbids main theme #110

Merged
merged 5 commits into from
Dec 21, 2023
Merged

Conversation

nathan-schmidt-viget
Copy link
Contributor

Summary

This sets up the main Goodbids theme which is a copy of WP Twenty Twenty-Four theme. 99% of this is copied files, I will flag the files I edited.

All of the base styles are removed from the nonprofit site and moved into the main theme.

I added the plum and the two pink as accent colors to the main site as the originally Twenty Twenty-Four accent colors did not go with the GB green, but we needed those accent colors for some core patterns. May not be a big deal if we remove the core patterns, but does not hurt to have those colors available to the main site editor.

Issues

Testing Instructions

  • Go to the Network Admin -> Themes and click "Network Enable" if not already turned on.
  • Go to the GoodBids Main site Dashboard.
    • Appearance -> Themes and activate the GoodBids Main theme.
    • Click on Appearance -> Editor and make sure the new main theme looks like the one in the screenshot (green bg).
  • Go to a nonprofit site and make sure the GoodBids NonProfit looks the same as it did before (white bg).

Screenshots

Screenshot 2023-12-20 at 1 34 42 PM

Colors Theme
Screenshot 2023-12-20 at 2 01 03 PM Screenshot 2023-12-20 at 1 33 31 PM

Comment on lines +208 to +211
/**
* Disable remote block patterns.
*/
add_filter( 'should_load_remote_block_patterns', '__return_false' );
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove remote patterns.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Custom screenshot for the main theme

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update style.css

Comment on lines 10 to 15
/**
* Disable remote block patterns.
*/
add_filter( 'should_load_remote_block_patterns', '__return_false' );


Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disable remove patterns.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are doing this in the parent theme, we shouldn't need to do this in the child theme.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that is correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the colors are updated and any custom padding or style for buttons is moved into the main and removed from the child site.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the nonprofit site to be a child of the goodbids main theme.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed most of the custom style in the child theme as they are now in the main theme. The only thing we had to keep is the colors. If I removed the colors from the child theme they all default to black/white, which is not what we want.

@nathan-schmidt-viget nathan-schmidt-viget marked this pull request as ready for review December 20, 2023 21:19
@nathan-schmidt-viget
Copy link
Contributor Author

@bd-viget and @nathanlong I have made notes to all the files that I have edited, which should make it easier for you.

The rest are a copy of the twenty twenty-four theme. Some of these templates and patterns we may not need, but once the pages are set up we can go through here and remove all of them that we don't need.

Copy link
Contributor

@bd-viget bd-viget left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing job going through all the Twenty Twenty-Four theme files! You nailed getting all the references updated. Requested a few small changes, and had some questions about other stuff.

themes/goodbids-main/style.css Outdated Show resolved Hide resolved
themes/goodbids-main/style.css Outdated Show resolved Hide resolved
themes/goodbids-main/readme.txt Show resolved Hide resolved
themes/goodbids-main/readme.txt Outdated Show resolved Hide resolved
themes/goodbids-main/readme.txt Outdated Show resolved Hide resolved
Comment on lines 10 to 15
/**
* Disable remote block patterns.
*/
add_filter( 'should_load_remote_block_patterns', '__return_false' );


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are doing this in the parent theme, we shouldn't need to do this in the child theme.

themes/goodbids-nonprofit/style.css Outdated Show resolved Hide resolved
themes/goodbids-main/readme.txt Outdated Show resolved Hide resolved
themes/goodbids-main/templates/404.html Outdated Show resolved Hide resolved
Copy link
Contributor

@bd-viget bd-viget left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great! One update to the Namespace and Since tags, and should be good to go!

themes/goodbids-main/functions.php Outdated Show resolved Hide resolved
themes/goodbids-main/functions.php Outdated Show resolved Hide resolved
themes/goodbids-main/functions.php Show resolved Hide resolved
Copy link
Contributor

@bd-viget bd-viget left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chatted you directly about the @since, otherwise good to go!

@nathan-schmidt-viget nathan-schmidt-viget merged commit 2bcd18f into main Dec 21, 2023
1 check passed
@nathan-schmidt-viget nathan-schmidt-viget deleted the ns/78-goodbids-theme branch December 21, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants