In my Photographus theme, I needed to reload the customizer preview from the preview in a specific case. After searching for a short while, I found the post »
Implementing Selective Refresh in the Customizer« by Weston Ruter.
The problem is solved with the following JS line:
WordPress 4.8 was released this week. Among other things, it brings visual text formatting to the text widget.
Continue reading WordPress weekly recap #23: WordPress 4.8 and more
align-items: center lets you center flex items which are next to each other, so that their horizontal midpoint is on one horizontal line. But recently I had two flex items and only wanted to center the right one, if the left is higher, but not the left one if the right is higher. For that, I cannot use
align-items: center, but the solution is not much more complex:
With that, the flex item
.center-flex-item will be centered if a higher item sits beneath it, but the other item will not be centered if
.center-flex-item is greater.
Update from June 9, 2017: Easier and with the probably more correct CSS rule for the scenario, it looks like that:
Thanks to Matthias for the hint!
I am happy to announce the release of my latest WordPress theme
. As the name suggests, it is meant for photo blogs and comes with some special features. For example, you can display various content types on the static front page, like an image grid of your latest posts with featured images. Photographus Continue reading New WordPress theme for photo blogs: Photographus
On Make/Updates, there was a proposal this week to create a WordPress Community Code of Conduct (CCoC), which promotes safety and inclusion for all community members in community spaces — like the WordCamp Code of Conduct already does it for WordCamps.
Continue reading WordPress weekly recap #22: Proposal of the WordPress community conduct project and more
If a website is displayed in a language which goes from right to left, we need to modify a few CSS rules if the CSS was written for left-to-right languages — for example, we would need to adjust left and right spaces and flip floats. We could make these Adjustments manually, but that can be time-consuming. With the help of Gulp, it is easier and faster.
Continue reading Adapt CSS for right-to-left languages with Gulp
This week saw several posts with detailed information about new features in 4.8, which are often interesting for developers.
Continue reading WordPress weekly recap #21: 4.8 dev notes and more
I wanted to run a WP-CLI command from GitLab CI (local server) on one of my Uberspaces. Since
version 0.24.0, the WP-CLI provides the
--ssh argument, which lets us do exactly that. It should be easy, but I come across one small problem.
Continue reading Run WP-CLI command on Uberspace from local Server
One new feature in WordPress 4.8 will be a variable width of the customizer sidebar. The sidebar width will grow up to 600 pixels on larger viewports, instead of remaining on 300 pixels.
Continue reading WordPress weekly recap #20: variable customizer sidebar width in 4.8 and more
Yesterday, I — unfortunately — had to write conditional CSS for IE and Edge… Both have problems with rendering my link
:focus style in the new WordPress theme, so I had to create a fallback.
Continue reading Conditional CSS for Edge and IE with breakpoints