ejnwebmaster
Forum Replies Created
-
Forum: Plugins
In reply to: [Load HTML Files] Not processing .htm filessed -i 's/<title>/<h1>/g' *.html
sed -i 's/<\/title/<\/h1>/g' *.htmlThe above, executed in the appropriate “processed” folder, and then moving the files back into “unprocessed” fixes the issue of a missing H1. Slugs are still wrong.
Forum: Plugins
In reply to: [Load HTML Files] Comments in HTMLIt was resolved when you read my original post. If I can figure out a solution, I’ll add to the fork.
Forum: Plugins
In reply to: [Load HTML Files] Not processing .htm filesI’ve offered a couple of changes in my fork:
https://github.com/ejnwebmaster/load-html-files
They address the slug and the post title issue.
Thanks for your efforts!
Forum: Plugins
In reply to: [Load HTML Files] slugsI’ve offered a couple of changes in my fork:
https://github.com/ejnwebmaster/load-html-files
They address the slug and the post title issue.
Thanks for your efforts!
Forum: Plugins
In reply to: [Load HTML Files] Comments in HTMLwas just resolving the thread with an empty note.
Forum: Plugins
In reply to: [Load HTML Files] Comments in HTMLJust an empty note.
Forum: Plugins
In reply to: [Load HTML Files] Not processing .htm filesHmmm. I see that they don’t have an H1, so I think they are just overwriting one file in the HTML Files?
As a fallback, is it possible to have a <title> group be used as the H1, if no H1 is found? This is really old HTML, so no H1s.
Here again the slug pulled from the filename would help, as well.
Thanks, much.
Forum: Plugins
In reply to: [Load HTML Files] slugsI have no PHP experience. Always willing to learn, though.
Is this in GitHub?
Also, the H1 comes through as the page title, and that’s terrific. Shifting to using the filename as a slug would retain that match for the URL calls. For index.html pages, you’d use the folder name or category as the slug, since that also matches the URL.
Not a complaint. This has been a real timesaver! Thanks!
It was a gamble. I knew about the plugin, but wasn’t sure if it worked for database entries other than “posts” and “pages”, but it turns out that it detects your “html_files”, too, so it was easy to use that tool to assign database records to the proper category, which helps with the navigation block in WP.
You might also consider having the HTML_Files be recognized by the Navigation block, but this option is quite easy to implement, so don’t rush to change your code. Just let folks know that there’s a plugin that will do the job, if needed.
All the best!
- This reply was modified 5 months ago by ejnwebmaster.
Following up, I installed the Post Type Switcher, and all is fine.
Thanks, again!
I see the imported files, but I would like to create a of copy them in the main Pages or Posts area, so they look like regular pages or posts. Manual or automatic is fine.
Thanks.
- This reply was modified 5 months ago by ejnwebmaster.
Forum: Fixing WordPress
In reply to: Anchor IDs in List ItemsI’ve added a bug report.
Forum: Fixing WordPress
In reply to: Anchor IDs in List ItemsI appreciate the responses.
I’m seeking to add anchors to list items, yes. The screenshot would only show that an anchor field is not available on the right side of the screen (no anchor field settings fields), as it is with other block types. The only advanced option is Custom CSS.
As far as I can tell, the official definition of <li> includes the ID attribute, but this is not implemented, and indeed is rejected by WP and the Gutenberg editor, even when I add it as custom HTML.
https://www.w3.org/TR/2012/WD-html-markup-20121025/global-attributes.html
I welcome any easy workarounds for adding anchors to list items.
Many thanks.
Forum: Fixing WordPress
In reply to: Add separate PDF subdirectory within site rootThanks for not laughing too hard at this bozo. Typo. All good.