Replies: 1 comment
-
Hi 👋 ! To be honest I feel like this is stepping too much into template territory to be provided as options (plus adding a new option just to configure title would create around 30-40 additional options in the I know similar options are already offered in 3 plugins ( Hope that it makes sense 😄 ! That being said, it's still possible to achieve what you're trying to do without having the hassle of setting a whole custom template fork by using the # Hide title text but keep icon
extras_css: |
h2 { color: transparent; }
# Hide whole title
extras_css: |
h2 { display: none; }
# Change title using String.prototype.replace(regex, content)
extras_js: |
const title = document.querySelector("h2").innerHTML.replace(/\s*(<svg.*>[\s\S]+<\/svg>)\s*[\s\S]+/, "$1 My cool repositories")
document.querySelector("h2").innerHTML = title The last example may be a bit trickier if you have multiple plugins in same rendering, but using a more specialized css selector (like |
Beta Was this translation helpful? Give feedback.
-
An option to change the title of a specific plugin (or hide it completely) would be a neat addition...
For me personally, a use-case would be to have the titles of the repositories plugin hidden, as I'm already showing the SVGs under a "Repositories" header in my profile readme.
To hide the titles, perhaps providing an empty String would be the best option?
Also, I'm for keeping the icons before the titles themself and just change the text (Maybe a separate option to allow changing the icons to a specific octicon? Tho, I think the pattern available for it alongside the global option should be enough).
Beta Was this translation helpful? Give feedback.
All reactions