#wordpress 2023-03-13

2023-03-13 UTC
#
[TMichelleMoore]
@gwg I am finished with the first plugin - The IndieWeb Plugin. I had to think of how I could document what I was doing and then learned some things from [chrisbergr]. So here is the first one. More to come now that I have figured out my strategy. https://tmichellemoore.com/blog/indieweb-plugin-testing-and-suggestions-project/
#
Loqi
[preview] [T Michelle Moore Project Manager | Photographer] I am testing some IndieWeb plugins and finally decided on how I could go about this. I am going to get the description and all of the features. From there I will test the features if I can. I don’t use the classic theme, therefore there are a few ...
#
GWG
[TMichelleMoore]: We actually took out the MF2 plugin.
#
[chrisbergr]
[TMichelleMoore] Your observations leading to your suggestion at ID5 do have my support! πŸ™‚
#
[chrisbergr]
gwg: The missing h-card widget for block themes can be solved if you add a shortcode printing out the widget content html. So users with new themes can use the shortcode widget to display their h-card. Should be an easy addition, but needs explanation on the settings page
#
GWG
[chrisbergr]: I suppose I can add a shortcode. I never particularly liked them, but can make it work as an interim solution
#
[TMichelleMoore]
[chrisbergr] Thank you! And I like that idea of a Shortcode!
#
[chrisbergr]
gwg of course shortcodes are not the greatest solution, but as long as nobody of us can provide an h-card block... πŸ™‚
#
GWG
[chrisbergr]: If one could do it in PHP...
#
[chrisbergr]
There is a way of writing blocks in PHP, but you'll need an additional plugin...
#
[chrisbergr]
Ok writing templates in PHP/HTML, you are building the blocks in an interface.
#
GWG
[chrisbergr]: Shortcodes will work for now.
#
[chrisbergr]
I used it in multiple client projects
RasAlGhoul joined the channel
#
[chrisbergr]
Another suggestion: Maybe you let the user define additional rel-me endpoints? Similar to custom post kinds.. In case anybody want to have more links in their h-card, e.g. deviantart, some sport tracking network and so on....
#
GWG
[chrisbergr]: That's already built in.
#
GWG
Under 'Other Sites'.
#
GWG
Anything you add there ends up as a rel-me.
#
GWG
Maybe that's another documentation opportunity
#
GWG
How do you think I got my Indieweb profile on there?
#
[chrisbergr]
Oh sorry, did not expect it down there πŸ™‚ Yes, great implementation with the textfield and one url per line..
#
[chrisbergr]
gwg: I found some problems on your website πŸ™‚
#
Ruxton_
ooo look out!
#
GWG
[chrisbergr]: Share away?
#
GWG
I just fixed something
#
Ruxton_
I found some problems on my website, no one posts content.. soo odd
#
[chrisbergr]
"On this day in Photos" points to '?p=426' which cant be found. But the more important thing I guess: The link "Map" goes nowhere https://david.shanske.com/location/de/berlin-de/
#
[chrisbergr]
Also in those location archives you don't display the postdate linked to the permalink, which is confusing.
#
GWG
[chrisbergr]: Yes, that's my theme, the map part.
#
GWG
[chrisbergr]: I don't? I see the date linked to the permalink.
#
GWG
Hmm...interesting. I'm always logged in. Let me see what it looks like logged out.
#
GWG
It looks perfect logged in.
#
Ruxton_
yeah its the samehere
#
Ruxton_
can confirm
#
GWG
I guess I'd better check everything in incognito mode
#
Ruxton_
venue pages have dates on them, check in pages have dates, but the location aren't showing
#
Ruxton_
*arent showing dates
#
[chrisbergr]
I'm always testing my changes incognito
#
[TMichelleMoore]
@gwg Oh, I actually used the Other in there. Lol I will update my list tomorrow.
#
GWG
I wonder how long that page has been malfunctioning
#
[chrisbergr]
Ruxton_ The problem that nobody posts content may be a bug in a plugin I'm using too πŸ˜‰
#
[chrisbergr]
gwg I know that around in November I was able to access the individual posts from those location archives...
#
GWG
[chrisbergr]: I'm tracing it. Found a different bug.
#
GWG
How so?
#
Ruxton_
the arrows
#
Ruxton_
one shows under, one shows right
#
Ruxton_
and the bottom item loses a border
#
Ruxton_
_menus.scss line 85 there's a last-child rule that removes your border and causes the last sub menu item to lose its border
#
GWG
I'll blame WordPress 2016. I just used their stuff
#
Ruxton_
did you child theme it? ;P
#
GWG
Ruxton_: I forked it
[tw2113_Slack_] joined the channel
#
[tw2113_Slack_]
child theme 4 lyfe
gRegor joined the channel
#
GWG
It is a significant rewrite. I couldn't child theme it
gRegorLove_ joined the channel
#
GWG
I stripped out a lot, rewrote a bunch.
#
GWG
I think I fixed that location taxonomy issue.
#
GWG
Need to test.
#
[chrisbergr]
Have you puplished the fix?
#
GWG
Give me a second.
#
GWG
Ruxton_: Would you suggest I remove that last child rule then?
#
GWG
[chrisbergr]: Try it now. Fixed the map link and the logged out query
#
Ruxton_
GWG: that seemed to work when I did it in inspector
#
GWG
Ruxton_: I wonder what else it does. I'd better look.
#
[chrisbergr]
remove that last child rule. And in _910.scss:88 and :95 you have the before and after declarations for this right arrow. change the "right:" to "left:" in it. In _710.scss:281 you can set display:none !important; to hide that middle arrow
#
[chrisbergr]
Oh, yeah, now everything looks good (and usable) again πŸ™‚
#
Ruxton_
doesnt even need to be important, it works with just display none, and its also in default.css and a few others (the things from 910)
#
[chrisbergr]
some confusing file name stuff going on with their old scss files
#
Ruxton_
if you set tehr gihts to 165 for before and 167 for after it looks aight
#
Ruxton_
*the rights
#
GWG
Ruxton_: What rights?
#
Ruxton_
the css rule for position right
#
[chrisbergr]
I would change right to left.. but yeah, whatever πŸ™‚
#
Ruxton_
sure i just left it like it was, adjusting the value not the rule
#
GWG
Okay, recreated more complex menus on this test site and implemented the changes https://wpdev.gwg.us/
#
Ruxton_
they're under .main-navigation ul ul::before gWG
#
Ruxton_
looks good
#
GWG
Okay. That should do it
#
[chrisbergr]
I would omit the sourcemap in the compiled css for production btw
#
GWG
[chrisbergr]: Not a bad idea...I have an exclude when making the final output to wordpress I need to include more in
#
GWG
Thank you everyone. Feedback helps.
#
GWG
I love simple fixes
#
[pfefferle]
[chrisbergr] so verbose? nice to have you back πŸ™‚
[Murray], gRegor, Loqi, RasAlGhoul, [dave], IWSlackGateway, [tantek], [benatwork], [snarfed], [pfefferle], [tw2113_Slack_], [KevinMarks], [TMichelleMoore], [schmarty], [aciccarello] and [asuh] joined the channel
#
[asuh]
Congrats pfefferle!
#
[TMichelleMoore]
Congratulations [pfefferle] This is big news!
RasAlGhoul joined the channel
#
[tw2113_Slack_]
i just hope they don’t stuff it into Jetpack still, and i cracked that joke earlier already πŸ˜„
#
[pfefferle]
[tw2113_Slack_] That’s is at least not what they told me ☺
#
[tw2113_Slack_]
:thumbsup_all:
#
GWG
I think Jetpack is too packed
#
GWG
[pfefferle]: I have a bunch of stuff that I want to fix I might ask for review on.
#
GWG
IndieAuth, Avatar Caching...all the dreams
#
GWG
Can we get Automattic interested in IndieAuth?
#
GWG
I figure, with a man on the inside...we might have some opportunities
#
[pfefferle]
I hope so!
#
[pfefferle]
πŸ˜‚
[chrisbergr] joined the channel
#
[chrisbergr]
"Our man at Automattic" πŸ˜„
#
GWG
I tried to get the REST API team interested in IndieAuth, but they ended up with Application Passwords instead
#
GWG
[pfefferle]: There is an overlap between IndieAuth and ActivityPub we might be able to bring up
#
GWG
User profile pages, vs author archives
[Tim_Nolte] joined the channel
#
[Tim_Nolte]
Very happy to hear about the announcement [pfefferle]
gRegor joined the channel