#wordpress 2017-12-07

2017-12-07 UTC
doubleloop[m] joined the channel
#
www.boffosocko.com
edited /WordPress/Themes (+279) "/* Child Themes */ Example of 2016 child theme for WordPress"
(view diff)
[chrisaldrich] joined the channel
#
[chrisaldrich]
mrkrndvs I've uploaded a sample of my 2016 WordPress child theme if it helps you get off the ground: https://github.com/chrisaldrich/2016-child-theme-for-indieweb You'll need/want to modify it for your particular theme and use cases.
#
Loqi
[chrisaldrich] 2016-child-theme-for-indieweb: A somewhat customized child theme for WordPress's Twenty Sixteen standard theme for IndieWeb use
[kiai], [miklb], j12t and [mrkrndvs] joined the channel
#
[mrkrndvs]
chrisaldrich I have been stumped by the spreadsheet. I tried importing the style.css file, but it is not flowing through. Am thinking that the css for ZenPress might be spread across a number of files or something. I might try creating a child with another theme. Thanks for the link.
[chrisaldrich] joined the channel
#
[chrisaldrich]
mrkrndvs If you're using ZenPress, you'll need to modify a few lines of the code so that it calls the parent theme.
#
[chrisaldrich]
you're right that the ZenPress css is spread across multiple files (in addition to other plugins which have their CSS as well). Your child theme's CSS will/should override them all.
#
[chrisaldrich]
https://indieweb.org/WordPress/Themes#Child_Themes has some useful (and relatively simple) links that you could take a look at to make sure you're doing things correctly.
#
[chrisaldrich]
My version will only work if the Twenty Sixteen (parent) theme is installed. Otherwise you shouldn't be able to activate my version.
#
[mrkrndvs]
Yep found that information chrisaldrich Been trying to work through that information for the last few days.
#
[mrkrndvs]
Thank you for the help
#
[chrisaldrich]
Let me see if I can set up a ZenPress child theme that will work for you then....
#
[chrisaldrich]
Honestly I always feel like developers should ship child themes with their parents.
#
[chrisaldrich]
as a default.
tantek and tantek_ joined the channel
#
[mrkrndvs]
I also got lost between @import which seems to have been replaced by a call within the Function file.
[keithjgrant] joined the channel
#
GWG
Evening
[miklb] joined the channel
#
[miklb]
good evening GWG
#
GWG
Hello
[chrisaldrich] joined the channel
#
[chrisaldrich]
evening GWG
#
[chrisaldrich]
mrkrndvs Okay, here's a dropbox link for a zenpress-child theme: https://www.dropbox.com/sh/e1ghazh8jlog1tz/AACfD-SyKIPnLpn6LAgof9lka?dl=0
#
[chrisaldrich]
You should put this into the same themes folder that zenpress and all your other themes are contained in
#
GWG
[chrisaldrich]: Hello
#
[chrisaldrich]
(You'll also want to make sure that the folder named zenpress is in all lower case, so it's found properly)
#
GWG
Were you able to get that branch working?
#
[miklb]
chrisaldrich what are your thoughts about putting that into a GitHub repo?
#
[chrisaldrich]
We could certainly do that, but it's an empty clone of the child theme already in the main ZenPress theme.... this one I've somewhat customized particularly for Aaron; I've also stripped everything out of it, so it won't physically do anything until he starts to modify it.
#
[chrisaldrich]
Hopefully it'll get you started mrkrndvs
#
[miklb]
ah, that makes sense. I should have read the discussion earlier. Apologies
#
[chrisaldrich]
mostly I was trying to get him bootstrapped with something that should work so he didn't have to extrapolate from the 2016 version I posted earlier. Hopefully by comparing between the parent and the child he'll be able to see what changes need to be made to make a child and then go from there.
#
[chrisaldrich]
(of course it presupposes that *I've* done everything correctly, but I did a quick down & dirty test and it seemed alright, or at least didn't white screen. ;)
#
[chrisaldrich]
GWG, I'll get around to SL in just a few hopefully!
#
GWG
Semantic Linkbacks?
#
[chrisaldrich]
no the _other_ SL, syndication links!
[mrkrndvs] joined the channel
#
[mrkrndvs]
Thanks chrisaldrich I managed to load a child so it was just showing the text. I was just having issues with getting the stylesheet to show up.
#
[chrisaldrich]
Showing text where? Getting style sheet to show up where? I'm not following?
#
[mrkrndvs]
In this post that is listed on the /themes page https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/ the first step of success is having the child show up in the dashboard.
#
[chrisaldrich]
Yes, if you've got it in the dashboard you're on your way.
#
[chrisaldrich]
Hopefully the one I sent you also has a recognizable screen shot too.
#
[mrkrndvs]
The problem is, no matter what I tried (@import or 'enqueue_parent_styles') I could not get the styles to show https://github.com/mrkrndvs/Zen-Child?files=1
#
Loqi
[mrkrndvs] Zen-Child: A child theme associated with ZenPress
#
[mrkrndvs]
I will let you know, thank you again
#
[miklb]
is php case sensitive for file names?
#
[miklb]
mrkrndvs you need to name the file `functions.php` you have `Function.php`
#
[miklb]
that _should_ allow the enqueue scripts function to work, and you can load your custom stylesheet in that same function
#
[mrkrndvs]
Well I am glad I shared now. Another careless mistake. Will have a go with my other site and see how I go.
#
[miklb]
if I had a dollar for every time I had a typo in file name or function…
#
[miklb]
especially when it’s right in one place, but wrong in another
[xavierroy] joined the channel
#
[xavierroy]
Is there a way to display Post Kinds metadata within a post? say like displaying the start and end dates for a read type post?
j12t, tantek and [mrkrndvs] joined the channel
#
[mrkrndvs]
miklb I changed the F to an f, still didn't work. Loaded chrisaldrich child and most of the styles are there (except the margins). Now to tinker ...
[chrisaldrich] joined the channel
#
[chrisaldrich]
xavierroy I thnk you could do it and it was discussed at some time by GWG. I don't think it's displayed in the current code, but you can customize the template for read posts to display that data if you like.
#
[chrisaldrich]
-->Views now use a function that looks for a directory called kind_views in the theme in the event any theme wants to customize display kinds
#
[mrkrndvs]
Just to clarify, technically a 'child' theme should look the same as the parent and then allows you to make modifications? I am assuming that some themes are less complex than others? That is why the codex page talks about a single style.css file for most, but some themes have multiple etc ... I at least have a start. Thank you.
#
[chrisaldrich]
xavierroy If I recall, here's the section of the code in github that handles the views: https://github.com/dshanske/indieweb-post-kinds/tree/master/includes/views
#
[xavierroy]
chrisaldrich thank you. I will look at it
#
[chrisaldrich]
mrkrndvs a child theme typically is pretty bare and most of the bulk of the work is done by the parent. The child theme usually has some small code snippets in the functions.php file and CSS that either replaces/overrides or supplements the parent.
#
[chrisaldrich]
If you have a complete copy of the parent in your child, then when the parent is updated, you don't gain much, if anything, from any potential security or other updates.
#
[mrkrndvs]
chrisaldrich that is what I thought. I think I might tinker with another theme to build up my confidence, because when I read Alan Levine's post cogdogblog.com/2017/11/hamilton-hub/ I get the impression that it should not be so difficult ... usually.
wagle joined the channel
#
[chrisaldrich]
mrkrndvs I remember liking https://www.amazon.com/Smashing-WordPress-Beyond-Blog-Magazine/dp/0470684151 by Thord Daniel Hedengren a while back. Reasonable hold-your-hand text with some step by step examples which might help you out with themes.
#
[chrisaldrich]
mrkrndvs The other thing to check is to make sure that you're not accidentally commenting out CSS in that child theme. You could try dumping in something obvious (like changing your <h1> style to make sure things are being picked up.
jeremycherfas and tantek joined the channel
#
jeremycherfas
!tell [mrkrndvs] I'm around now and may be able to help, though I am not nearly as expert as some of the US West Coast people.
#
Loqi
Ok, I'll tell them that when I see them next
#
jeremycherfas
I've got to fix some text styling on my own child of zenpress and will then share that too.
j12t, tantek and [mrkrndvs] joined the channel
#
[mrkrndvs]
chrisaldrich $200 new in Aus. Won't send a used copy to my destination
#
[mrkrndvs]
I think you are right though. I should invest in a text of some sort.
#
[mrkrndvs]
Although available in Portuguese on Kindle
tantek and j12t joined the channel
#
sknebel
[mrkrndvs]: amazon for some reason treats all revisions of the book as different books, maybe one of the other ones is available? (click through to the author overview page)
jeremych_ joined the channel
#
[mrkrndvs]
Found a digital copy. See you in a year's time ;)
#
jeremycherfas
Working out WHY theme authors style things the way they do is where I find myself stuck far too often. And where I am stuck now.
#
jeremycherfas
OK, I have the styling I want; now I will try to indiewebify the site I am working on.
[mrkrndvs] joined the channel
#
[mrkrndvs]
chrisaldrich I managed to get a child going with my main site where I am running Independent Publisher. Was as easy as I imagined it to be. Will put my earlier issues down to ZenPress.
#
[mrkrndvs]
jeremycherfas that is my next task to start exploring. I think I will have to do some reading first ...
#
jeremycherfas
I use Independent Publisher on one site, ZenPress on another, trying to broaden my experience.
#
jeremycherfas
Currently in the middle of indiewebifying.
[xavierroy] joined the channel
#
[xavierroy]
is there a completely barebones theme that supports Post Kinds out of the box?
#
jeremycherfas
Possibly GWG's mf2_
#
Loqi
[dshanske] mf2_s: Microformats 2 Version of Underscores Starter Theme with Indieweb Support
#
jeremycherfas
After more than an hour fiddling my way through the various plugins, there is no sign of any rel=me or h-card info at fornacalia.com.
#
jeremycherfas
I really don't know how anybody finally gets there. Even though I have done so myself on another site.
#
GWG
How can I help?
#
jeremycherfas
It is really hard to say David. I mean, I could give you admin access and just say "do it" but that wouldn't work.
#
jeremycherfas
There are just so many moving parts
#
jeremycherfas
And despite all the really good posts by you and others, no very clear roadmap of which bits do what and how they do it.
#
jeremycherfas
For a start, though, where is my h-card?
#
GWG
Well, what theme are you using?
#
jeremycherfas
Zenpress child
#
GWG
I'd have to look, but pfefferle who wrote ZenPress is usually good about putting in an h-card.
#
GWG
I didn't like his approach because I wanted a more distinct one, so I added the h-card widget to the Indieweb plugin
#
jeremycherfas
I don't have a particular attachement to Zenpress at this point, so I was going to take a look at your mf2_ and see how I get on with that.
#
GWG
I've worked on two more recently.
#
GWG
1. My 2016 fork, in my repo
#
jeremycherfas
The instructions say that if I want the h-card to be visible, I should use the widget. But I don't want the details visible on the site, so I am not using it. Should I be?
#
GWG
2. My fork of Independent Publisher, pending merge
#
GWG
jeremycherfas: Which details exactly?
#
jeremycherfas
The contents of my h-card.
#
GWG
I meant, your name, image, or what?
#
GWG
Right now, the h-card widget doesn't expose much
#
GWG
And if/when it does, it would be a setting
#
jeremycherfas
I don't want it to expose anything. But I want them to be available for mf2 parsers
#
GWG
Okay. So, a 'hidden' h-card. Interesting.
#
GWG
That's a feature request to note for future
#
GWG
But, then the one inside ZenPress should be fine.
#
GWG
It exposes name and URL
#
jeremycherfas
It isn't, though. I went through the steps outlined in the onboarding screen for the IndieWeb plugin, placed details in my profile, indicated a single author, and yet the page contains no mf2. And it isn't a problem with caching.
#
GWG
jeremycherfas: ZenPress doesn't use the Indieweb plugin, something I should point out to pfefferle
#
GWG
The plugin has the widget, pfefferle's themes just build in an h-card
#
jeremycherfas
But then, I guess that's part of the problem I have. The IndieWeb plugin does the thing for user profile, but then the rest of equipping for indie seems to be down to all the other plugins that the IndieWeb plugin carries with it.
#
jeremycherfas
I don't see anywhere in the theme for it to obtain the necessary options.
#
GWG
H-Card is only in the Indieweb plugin
#
GWG
But the theme pulls it from the profile directly
#
jeremycherfas
Adding the rel=me widget displays the icons from the IndieWeb plugin, but they still don't show in the pin13.net/mf2 parser
#
jeremycherfas
At this point, given that this site is unlikely to be of any IndieWeb interest outside of myself, I'm beginning to think there's just no point trying to indiewebify it.
#
GWG
It should be easier
#
jeremycherfas
Agreed. I would love to be able to be at Austin and to work with you on trying to make it easier.
[andrea_arbogast joined the channel
#
[andrea_arbogast
Hello. Wow, catching up.
#
jeremycherfas
All deactivated, for now.
#
GWG
Hi, [andrea_arbogast
#
sknebel
jeremycherfas: there clearly are microformats and rels, so if pin13 doesn't seem the something is wonky there
#
jeremycherfas
Well, they're all gone now.
#
jeremycherfas
It never occurred to me that pin13 might be wonky.
#
jeremycherfas
Are you seeing an h-card? I'm not.
#
jeremycherfas
You're right. Unmung does dhow an h-card.
#
jeremycherfas
So the site seems good for mf2, but not for the IndieWeb back and forth, necessarily.
#
jeremycherfas
But I'm too tired to pursue this further right now.
[kevinmarks] and Loqi joined the channel
#
sknebel
[andrea_arbogast is what I see from IRC, are you andrea in Slack?
Ruxton joined the channel
#
sknebel
the bridge is supposed to translate that I thought, maybe it gets confused because the closing ] is cut off?
#
[andrea_arbogast
Yes, I’m andrea in Slack.
#
sknebel
[andrea_arbogast] how is <- this displayed to you?
#
[miklb]
that doesn’t work. The IRC to Slack mentions that is
schmarty joined the channel
#
[andrea_arbogast
Displays for me same as miklb’s screenshot
#
[miklb]
I routinely see “@miklb” coming from IRC but Slack doesn’t interpret it as a mention. I don’t find it to be a big problem.
#
[miklb]
where it might be a problem is with !tell
#
[andrea_arbogast
No, not a big problem, just wondering if it’s something in need to clean up
#
[andrea_arbogast
I didn’t get your !tell from Loki
#
[andrea_arbogast
But saw it in the stream
[eddie] joined the channel
#
GWG
[miklb]: Sorry about that
#
[miklb]
about?
#
GWG
I @ mention you a lot
#
[miklb]
yeah, it’s weird that Slack doesn’t interpret that. ¯\_(ツ)_/¯
doubleloop[m] joined the channel
#
[miklb]
excited about all of the talk about indieweb WordPress themes.
jeremych_ joined the channel
#
GWG
Ditto
#
[miklb]
speaking of, I’m a little stuck on the h-card widget implementation for https://github.com/miklb/permission so if anyone wants to talk about that I’m all 👂 & 👁
#
Loqi
[miklb] permission: WordPress theme with IndieWeb support baked in. You have permission to free your content from silos.WordPress theme with IndieWeb support baked in. You have permission to free your content from silos.
#
[miklb]
I haven’t pushed the code I’m working on for the h-card because I’m just not sure how to proceed. If it’s of interest to you, ping me.
#
GWG
It is always of interest
foo1 joined the channel
#
[miklb]
well, you’ve said you have some plans for the widget. I’d love to hear what those are so maybe we could implement them sooner than later. I’m being very deliberate and stopping myself at every turn from not using the existing tools to build the indieweb features into this theme.
#
jeremych_
!tell gwg playing with your mf2_s locally. Fattal error Fatal error: Uncaught Error: Call to undefined function get_linkbacks_number() in /Applications/MAMP/htdocs/wordpress/wp-content/themes/mf2_s/inc/entry-meta.php:131
#
Loqi
Ok, I'll tell them that when I see them next
#
GWG
I know. Pfefferle just pushed a new version of Semantic Linkbacks.
#
Loqi
GWG: jeremych_ left you a message 2 minutes ago: playing with your mf2_s locally. Fattal error Fatal error: Uncaught Error: Call to undefined function get_linkbacks_number() in /Applications/MAMP/htdocs/wordpress/wp-content/themes/mf2_s/inc/entry-meta.php:131
tantek joined the channel
#
jeremych_
Does your theme REQUIRE Semantic Linkbacks?
#
jeremych_
Ah yes; I see that it does. Apologies.
#
GWG
I need to add an if active condition
#
GWG
I need to update for it
#
jeremych_
Installing the latest version of Semantic Linkbacks removed the error
#
jeremych_
GWG where does the theme pull the Menu from? I have edited the menu, removed old versions etc etc but I am still seing almost everything I have ever had in a navigation menu.
#
jeremych_
It seems to display all Pages , regardless of the specified content of the menu.
#
jeremych_
I think I am going to stick with my child of Zenpress
#
[mrkrndvs]
dshanske I agree that is needs to be easier. Personally, I started dabbling with themes when I read that things work better with an IndieWeb enable theme in the notes of the Webmentions plugin. It feels like a lot of it is still very Gen1. My question is whether the answer is to build the capacity of more people to become Gen1 or somehow make it more accessible for Gen2,3 etc ...
#
GWG
It has been slow changing our initial minimalist philosophy
[chrisaldrich] joined the channel
#
[chrisaldrich]
I remember about two years ago needing to test out 2 or more plugins for micropieces of functionality. Some were better than others. Now there are at least a small handful of more coherent interworking plugins.
#
Loqi
progress has 1 karma in this channel (4 overall)
sebsel, j12t, raretrack and [mrkrndvs] joined the channel
#
[mrkrndvs]
Sorry, I was not trying to imply that there has been no progress. snarfed keynote earlier in the year reminded me of how much of this is a project of passion. I am forever grateful.
#
GWG
There is always more to do
#
GWG
I just spent some time automating some functions to make updates from upstream easier.
#
GWG
I think we should figure out ways to consolidate WordPress and other PHP based stuff if we can or other non Indieweb projects to see if we can iterate faster
j12t, j12t_, [andrea_arbogast, [miklb] and tantek joined the channel