__READ_ME--- Notes from Brett about Child Theme

The theme has been somewhat modified using the child theme, to allow consistency across sites.


Home Page   – front-page.php

The home page … There is a page clearly identified as the home page in the list of pages. This is being surfaced because of changes to the file front-page.php in the child theme. The standard AGM theme forces the directory structure, and it also forces the page to be edited to follow the standard AGM theme.

So now … the file front-page.php in the child theme DIRECTLY references by Post ID the page you will see in the list of pages.


Footer – footer.php

footer.php in the child theme files overwrites the standard footer.  This means that EXACTLY the same footer is across ALL sites on this multisite setup.

Footer Menu

Note that as a result of the above .. the Footer Menu inside the dashboard (Appearance/Menu) is NOT being displayed on the sites. I should probably delete it or rename it to “Not Used” or something.


styles.css
There are some CSS styles built into style.css.  Some of them will also be repeated in the individual themes. I will try and consolidate them as much as possible so that all the *standard* changes (mostly display:none) are only ever put into the styles.css.  This way, if you want something to come back to life … you only have to edit it in one place.


Contact Page – contact.php

The contact page in the standard AGM theme defaults to a page called contact.php in the theme files. I have created an alternative contact.php in the child theme which has the iframe from GHL built directly into it.  This is the only way to change the content on the Page in WP called “Content”.


single.php

Made a change to move the headline out of the banner and into the top of the post like it normally would be. It looked stupid in the banner.

I actually think it would look better without the banner at all.  Might put some css to remove it.


functions.php

–> NEED TO CHECK THIS IS GOOD… BECAUSE I SUSPECT IT WAS ONLY IN ONE OF THE THEMES … BUT NOW IT’S THERE FOR ALL

I did not enter this into the child theme files. I asked ChatGPT what the code in there does and it tells me…

Summary of What This File Does:

  1. Loads Styles:
    • The child theme loads the parent theme’s style.css first, then loads the child theme’s own style.css (allowing the child theme to override any parent styles).
  2. Adds Custom Column (Email):
    • In the WordPress Admin Posts List View for the custom post type listings, this file identifies a new column called Email (email_field), allowing you to display an email address in that column.
  3. Displays Email Addresses in List View:
    • For each listing, the email address stored in the post meta (email_address) is displayed in the new Email column.

Practical Effect:

  • For Styling: On the front end of the website, users will receive both the parent theme and child theme styles when loading pages. The child theme styles can override the parent theme’s styles.
  • For Admin UI:
    • When viewing listings in the WordPress Admin (Dashboard > Listings):
      • You will see a new Email column.
      • This column will show the email addresses that were saved in the post meta under the meta key email_address.
  • Debugging Notice: You may want to remove the print_r($columns); line as it’s meant for debugging and might clutter the output when viewing the admin screen.

 


zzz-screenshot.png

An OfflineSharks logo. Was called screenshot.png.  I doubt it’s being used anywhere… but just kept it here (renamed) just in case it breaks something. Can probably be deleted.

Add Your Business FREE!