Open bobbingwide opened 4 weeks ago
I'll try to use the SVG version.
I copied the SVG I'm going to use from the Gutenberg plugin. It's the x-link
icon in libs\oik-dash-svg-list.php
.
The source file is social-link\icons\x.js
.
This is much smaller than the logo in logo.svg
Q. How to support users that still want to use...
A.
By default [bw_follow_me] will display follow me links for both Twitter and X, Twitter first. To just get the X icon blank out the Twitter value.
For theme=dashicons and theme=genericons, since these fonts don't contain the X icon the Twitter icon will be used. It's recommended to use theme=svg or theme=none.
There was a problem that the genericons CSS wasn't being loaded in the block and site editor. The icons were not visible. This can be fixed by changing the editorStyle
attribute in block.json
to
"editorStyle": ["file:../../build/follow-me.css","genericons"],
We also need to ensure that the genericons
script is registered in response to enqueue_block_assets
and enqueue_block_editor_assets
.
Twitter was renamed to X a while ago. The Twitter logo - a tweeting bird - has been replaced by an X
See https://about.x.com/en/who-we-are/brand-toolkit
Requirement
https://twitter.com/herb_miller
can be changed tohttps://x.com/herb_miller
Notes
The x-logo.zip file from the brand toolkit link contains 3 files
Imaginatively named! I'll try to use the SVG version.