#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.
[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
[miklb] joined the channel
[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
# [chrisaldrich] (You'll also want to make sure that the folder named zenpress is in all lower case, so it's found properly)
# [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
# [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!
# [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
# [mrkrndvs] I will let you know, thank you again
# [mrkrndvs] Well I am glad I shared now. Another careless mistake. Will have a go with my other site and see how I go.
[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.
# 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
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_
# jeremycherfas Apologies. Wrong paste. https://github.com/dshanske/mf2_s
# 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.
# 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?
# jeremycherfas Zenpress child
# 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.
# 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?
# jeremycherfas The contents of my h-card.
# jeremycherfas I don't want it to expose anything. But I want them to be available for mf2 parsers
# 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.
# jeremycherfas What?
# 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.
# 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.
# 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.
# 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
Ruxton joined the channel
# [andrea_arbogast Yes, I’m andrea in Slack.
schmarty joined the channel
# [andrea_arbogast Displays for me same as miklb’s screenshot
# [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
doubleloop[m] joined the channel
jeremych_ joined the channel
# [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 👂 & 👁
foo1 joined the channel
# 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 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.
# 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 ...
[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.
# [chrisaldrich] progress++
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.
j12t, j12t_, [andrea_arbogast, [miklb] and tantek joined the channel