#wordpress 2021-09-10

2021-09-10 UTC
bitmega, [jeremycherfas], [jgmac1106]1, jeremycherfas, kevinmarksbot and kimberlyhirsh[d] joined the channel
#
jeremycherfas
Can anyone tell me how to edit `content-page.php` in the IW26 WP theme so that it no longer display the right-hand sidebar?
#
GWG
jeremycherfas: I thought I did that in the last version by default
#
jeremycherfas
I'm not seeing it. But I may not be fully up to date. I have iw26-trunk dated 2021-03-14 (but that may be when I downloaded it).
#
jeremycherfas
I just switched to iw26-trunk and there is a sidebar on Pages.
#
GWG
jeremycherfas: Odd
#
GWG
Last commit?
#
GWG
No sidebar
#
jeremycherfas
Let me check.
#
jeremycherfas
Ah, I didn't clone. Let me update.
#
jeremycherfas
Can you plese remind me of the link?
#
jeremycherfas
NVM found it.
#
GWG
jeremycherfas: I did a lot of tweaks on the theme. Hope you like them... feedback appreciated
#
GWG
It now does automatic dark mode
#
jeremycherfas
Sure. I had already started working on my child, but I have now redownloaded the master and will take a look.
#
jeremycherfas
I personally am not particularly bothered by dark mode, though I know it is good for some visitors.
#
GWG
It's based on browser preference
#
GWG
So it will change
#
jeremycherfas
Not crazed about the responsiveness, but I can work on that.
#
jeremycherfas
And the home page has changed quite a lot.
#
GWG
It it easy to r
#
GWG
emove in the css coding
#
GWG
Yes, that's also able to be adjusted
#
jeremycherfas
Right. I'd rather tweak some of the margins and padding for responsiveness.
#
GWG
Just replace front-page.php
#
GWG
jeremycherfas: I am happy to accept those for upstream
#
jeremycherfas
Is the big black border visible only when logged in?
#
GWG
I kept the original ones from Twentysixteen
#
GWG
I am not sure, never touched it from stock
#
jeremycherfas
Oh no, it is there all the time. Personally do not like that.
#
GWG
I'll have to look
#
jeremycherfas
Lots to tweak then. But all a matter of personal preference. You did a fine job.
#
GWG
jeremycherfas: Any ideas...tell me
#
GWG
I tried to keep it true to the original, and only change with deliberate reasons
#
GWG
Like the new front page
#
jeremycherfas
Well, all I can say is that there are things I like and things I dislike, so better for me to deal with those as a one off. But that black border is definitely one.
#
jeremycherfas
Did you change many of the CSS selectors?
#
GWG
jeremycherfas: I tried not to
#
GWG
So they should all be there
#
jeremycherfas
Just that some I thought I had dealt with I need to deal with again. But mainly on the home page.
#
jeremycherfas
In my current version, I have five podcast posts, but I think I might think about just the single latest podcast post.
#
GWG
I thought about adding different types of posts to the front page, set with a configuration setting.
#
jeremycherfas
That is quite complex
#
jeremycherfas
My first goal is to get the home page back to how I had it. Which means the full post, no h-card, no "Featured" etc etc.
#
GWG
jeremycherfas: That's why I didn't do it
#
GWG
jeremycherfas: Override front-page.php
#
GWG
I should add a configuration setting perhaps
#
GWG
If you just remove the file entirely, it would revert
#
Loqi
it is probable
#
jeremycherfas
Which file? content-page.php?
#
jeremycherfas
I don't have that file in the latest download.
#
jeremycherfas
Confusion. You meant override `front-page.php`
#
jeremycherfas
Got it. Let me look at that and see.
#
jeremycherfas
Easiest to move that into my child and tweak it there. Let me try that.
#
GWG
Just move home.php to front-page.php in your child theme
#
jeremycherfas
But you do not have a `home.php` in iw26-trunk
#
GWG
Oops
#
jeremycherfas
Anyway, gotta run now. May pick this up again tomorrow. Thanks for your work.
#
GWG
Any time
#
[jeremycherfas]
I think I actually prefer Twig templating to WP and not only because I have used it more often recently.
#
[tw2113_Slack_]
all you hooligans and your fancy templating systems 😛
#
GWG
[tw2113_Slack_]: What do you use?
#
[tw2113_Slack_]
WordPress’ setup. I’m basic and it’s familiar
#
GWG
I meant which theme
#
[tw2113_Slack_]
ah
#
[tw2113_Slack_]
for my IW based one, autonomie
#
[tw2113_Slack_]
for all the others, it’s a mix of free themes or custom ones
#
[chrisaldrich]1
Speaking of themes, I ran across a nice minimalist /commonplace_book theme the other day. I may need to add some microformats into it: https://github.com/piperhaywood/commonplace-wp-theme
#
Loqi
[piperhaywood] commonplace-wp-theme: A WordPress theme based on a Commonplace Book
[manton] and wackycity[d] joined the channel