[Feature Request] Custom class names in Page element
See original GitHub issueWould be nice to be able to give each page a custom class, such that the custom class name would be included here:
<div class="phb page" id="p1"></div>
This would allow for quickly tagging a page as the “cover”, “toc”, “credits”, etc. Currently, the method I would use is to create my own div with class/id=“title” and then put the entirety of that pages contents inside that div…but that is a needless div.
Just to throw something at the wall, it might look like this:
\page -cover-
or
\page -toc blue-
which would translate into the following, respectively:
<div class="phb page cover" id="p1"></div>
<div class="phb page toc blue" id="p1"></div>
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
Feature Request: Custom class names · Issue #102 - GitHub
Is it possible to provide a way to override the various class name definitions for each property? For example, I'd like to use:...
Read more >Feature Request: Adding a custom class to items
I did something like this to add a custom class attribute to images items. The problem is, I can't find a filter to...
Read more >Adding unique class names to to the elements in the topic map
I added a unique class name to each of the elements/list items. This lets you target individual elements in the topic map for...
Read more >Custom elements - The Modern JavaScript Tutorial
We can create custom HTML elements, described by our class, with its own methods and properties, events and so on. Once a custom...
Read more >Adding/Editing class names to Design Specs
Adding/Editing class names to Design Specs. Ability to add/edit the class name to elements for developers. Possible Solution
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Might not need it on the first page; since the first page is always the first page, it’s easy to reference it without a custom class name. Or, always give the first page a class name of “first” or similar, not user defined.
I have to think about it a little more though.
See issue #1488 and #1489 for general solutions that uses
{curly-injection}