New GregCustom Theme

Post Reply
NorfolkGreg
Posts: 75
Joined: Wed Sep 01, 2021 7:50 am

New GregCustom Theme

Post by NorfolkGreg »

I've just uploaded a new theme. Check it out at:
https://github.com/NorfolkGreg/GregCust ... /README.md

It's based on the one I'm using for my site, currently at:
htt ps://gregchapman.me.uk/wondercms/home
I may yet move it to
https://gregchapman.uk/index.php
where the original hand-coded version is.
======================
EDIT: The Wcms version is now at: https://gregchapman.uk/index.php
It's running a customised version of the GregCustom theme.
You'll now get a 404 at the original .me.uk address.
======================
It's my first attempt at sharing one with the Wcms community, so I regard it as ripe for improvement at the moment. That's because I'm almost totally self taught. My only computing qualification was a "Data Processing" module as part of a day release "Business Studies" course taken in the 1970s.

Here are some of my thoughts...

Is it better to do as SKY does, and included downloaded copies of the fonts used or is it acceptable/better to use links to Google fonts in the theme.php file?

You'll realise, from looking at the preview images, that all text above the menu bar is taken from fields on the "Settings > Menu" and "Settings > Current Page" screens. The "contents" field certainly isn't meant to be as short as you have to make them to be used in the header. While I would much prefer to use the <?= $Wcms->block('subside') ?> structure to act as the header block, until Wcms' index.php file is reworked that would leave it with extremely confusing content, but you'll have seen I've got a Wish List post discussing that.

You'll also see from that wish list that I also haven't found a satisfactory way to handle menus that are at sub-page level. Hover menus are ok at the top level but once dropdown are involved, they become very messy. Is that just me and my lack of properly programmer training? Is there any current theme which has a touch-screen friendly menu system once sub-pages are added?
Last edited by NorfolkGreg on Fri Feb 16, 2024 5:09 pm, edited 3 times in total.
NorfolkGreg
Posts: 75
Joined: Wed Sep 01, 2021 7:50 am

Re: New GregCustom Theme

Post by NorfolkGreg »

I've now updated the theme to 0.0.2 !

I've tweaked the theme.php file and added more hooks in the CSS that allow you to change the colour scheme. This is done through a list of variables at the top of the file that make it very easy to change.

I've also added a "resources" folder to the theme. This currently includes a file of hints and tips on how to use the variables and a couple of sample sets of variable lists that, pasted into the style.css file to produce the two variations seen below.

Image

Image

You will also find a couple of sample background images (They're a bit rudimentary) that help demonstrate how images can replace the plain colours of the default theme. I plan to add a few more more "artistic" images. I'd welcome submissions of both background images and and variable sets to include in future versions of the theme.

Oops! Just realised I haven't quite finished the coding to place the background images so they do what I plan they should do. Wait for a further message before testing!
Last edited by NorfolkGreg on Thu Feb 29, 2024 4:51 pm, edited 1 time in total.
NorfolkGreg
Posts: 75
Joined: Wed Sep 01, 2021 7:50 am

Re: New GregCustom Theme

Post by NorfolkGreg »

Update!
Coding sorted!
But I'm still to produce further header background images and document their use more fully.
User avatar
wiz
Posts: 748
Joined: Sat Oct 30, 2010 12:23 am

Re: New GregCustom Theme

Post by wiz »

Hello Greg, thanks for all your efforts.

Been extremely busy lately, I promise to get back to this, review it and most likely add it to the list of publicly available templates through wcms :)
NorfolkGreg
Posts: 75
Joined: Wed Sep 01, 2021 7:50 am

Re: New GregCustom Theme

Post by NorfolkGreg »

Many thanks, wiz. I look forward to seeing what you think, and what I may need to change to make it acceptable as an official add-on.

I have just upload a version 0.0.3.

This moves all the samples files to the "resources" folder so it can now be downloaded to be kept locally and deleted from the server as its contents are not needed for the theme to function.

There is added material in the resources folder, a tweaked sample colour scheme suggestion, and an much expanded "ReadMe.txt" to help novice users of WonderCMS customise the theme. so they could produce something more like this:

Image

I'm sure they are other minor improvements that I've forgotten to note.
Last edited by NorfolkGreg on Thu Feb 29, 2024 4:52 pm, edited 1 time in total.
NorfolkGreg
Posts: 75
Joined: Wed Sep 01, 2021 7:50 am

Re: New GregCustom Theme

Post by NorfolkGreg »

I have just uploaded version 0.0.4

This minor update adds three classes that can be applied to <p> tags to provide captions to images together with the variables to set the colour to be applied to the text and backgrounds of the captions, as explained in the updated README.md file.

While making the upload to GitHub I discovered that I may have failed to upload some of the material to the resources folder that I claimed to be there with the 0.0.3 version. Any previously missing files are now in place.

My own installation of the theme, found at https://gregchapman.uk is currently running with the "LightMono" colours mentioned in the ReadMe.txt file found it the "Resources" folder. It also have a couple of further classes added to handle the "thumbnails" used in the "Games" section of the site. I've begun to add a section that covers my explorations of WonderCMS. I'd welcome any feedback, suggested improvements and corrections, to the material found in that section.
Post Reply