WordPress Should Support Featured Images for Categories, Users, and More

WordPress Should Support Featured Images for Categories, Users, and More

wptavern.com wptavern.com3 months ago in #Web Design Love24

One of the options that I’ve lengthy sought after for WordPress has been on my thoughts in recent times. It isn’t a brand new concept, and it’s been applied in some shape or style through plugin and theme authors up to now. However, it hasn’t ever been standardized. WordPress wishes featured photographs for extra than simply posts. It will have to enhance them for taxonomy phrases (e.g., classes, tags) and customers. One month in the past lately, I participated in Round #13 of the FSE Outreach Program. It was once the primary time that the Gutenberg plugin allowed including a brand new writer template by way of the website online editor (that is coming in WordPress 6.0). Author templates have all the time been supported if added by way of the theme, however customers now have that energy. The program referred to as for volunteers to check this option and some new author-related blocks. As I all the time do when taking part within the FSE Outreach trying out calls, I attempted to push the design limits of the editor. Much of this system specializes in the person revel in, however I need to transcend that and to find the ones design-related ache issues. Ultimately, I settled on a design for my pretend writer template: Custom writer template. I added a Cover block because the backdrop for the writer profile phase on the best of the web page. I preferred the glance of the mountains jumbled together with the energetic theme design. The drawback was once that there was once no option to personalize that for each and every person account. Sure, each and every person will get to choose their very own avatar and write their very own bio, however there is not any simple option to allow them to have their very own featured picture. Technically, it’s conceivable to try this through developing customized author-{$identity}.html or author-{$username}.html templates and manually and importing them to the theme’s /templates folder. For managed environments, similar to shopper builds with a suite collection of customers/authors, this can be a chance. Even in the ones situations, this can be a little bit of a control headache. And it does now not account for each and every different WordPress person who may need to do one thing identical. In the vintage technology, the similar factor existed. However, it was once moderately easy to code for the entrance result in a PHP-based templating machine. For block subject matters, maximum would wish to create a customized block. The picture add shape will be the identical in each situations (treated on person profile and taxonomy time period admin displays). The bother with customized blocks is they don’t faucet into the core blocks’ integrated options. For instance, WordPress 6.Zero will permit surroundings a Cover block’s background the usage of the publish featured picture. In the long run, core will most likely enhance this for different image-related blocks like Media & Text. Porting those identical options over to third-party plugins does now not make sense. It additionally does now not empower customers who need to construct such designs with WordPress. Nor does it supply theme authors with the equipment to send templates and patterns with distinctive layouts to the general public. While I’ve essentially all in favour of writer templates, the similar arguments stand for taxonomy time period templates, similar to classes and tags. For instance, I constructed out a handy guide a rough class template the usage of a identical design as proven previous: The picture works smartly for my instance Nature class however now not such a…

Like to keep reading?

This article first appeared on wptavern.com. If you'd like to keep reading, follow the white rabbit.

View Full Article

Leave a Reply