tolddsm
Forum Replies Created
-
Forum: Plugins
In reply to: [SimpleTOC - Table of Contents Block] is there a shortcode@mtoensing, thanks for the reply. Well, how to call simpletoc in php? Say if I want to inject simpletoc into the_content, how can I do that? I’m asking for shortcode because it’s easy to do a simple do_shortcode().
Forum: Plugins
In reply to: [Debug Log Manager] wp-config rulesThanks, I think it could be a priority for your future release.
I assume many users who use this debug tool would have already done some sort of customization. Disabling the plugin should restore the config rules to avoid potential conflicts, such as PHP fired via hooks are disabled by DISALLOW_FILE_EDIT.
Forum: Plugins
In reply to: [Debug Log Manager] wp-config rules@qriouslad, or how to get a clean uninstall? Simply deactive or uninstall the plugin does not change wp-config rules back to pervious state.
Forum: Plugins
In reply to: [SimpleTOC - Table of Contents Block] Disable anchor generated for h1Yes it can be a quick workaround.
since SimpleTOC does not check for duplicated ids.
I wonder how many people actually use h1 anchors, just adding a filter to disable h1 output is enough. Please consider this if possible.Anyways, thanks for your time looking into this!
Forum: Plugins
In reply to: [SimpleTOC - Table of Contents Block] Disable anchor generated for h1Hi Marc,
It’s turned off, I only show h2s in TOC. For your information, the min and max level are all “including h2″
The problem is the heading #ID is automatically added to all heading with the plugin activated.
My problem is :
The content:
h1 id=”i-love-a” I love a
h2 id=”i-love-b” I love b
h2 id=”i-love-c” I love c
h2 id=”i-love-a” I love aThe TOC:
h2 id=”i-love-b” I love b
h2 id=”i-love-c” I love c
h2 id=”i-love-a” I love aIf I click I love a, it jumps to the h1 instead of the h2 as h1 ID is auto-generated.
I want to disable all IDs generated to h1.Thanks
- This reply was modified 2 years, 1 month ago by tolddsm.
Sorry I just copy paste your example, forgot to edit the anchor
<ul class="simpletoc-list"> <li><a href="#what-is-coffee">what is coffee</a></li> <li><a href="#why-drink-coffee">why drink coffee</a></li> <li><a href="#coffee-benefits">coffee benefits</a></li> </ul>
Never mind, I’ll just edit the H1 ID to avoid duplicated anchors.
Hi,
Sorry, maybe this is more clear. Say I have an article with these headings.
<h1>why drink coffee</h1> <h2>what is coffee</h2> <h2>why drink coffee</h2> <h2>coffee benefits</h2> </ul>
In this case, even though I only generate TOC on H2s and I get
<ul class="simpletoc-list"> <li><a href="#123">what is coffee</a></li> <li><a href="#123">why drink coffee</a></li> <li><a href="#123">coffee benefits</a></li> </ul>
The
why drink coffee
link will jump to the H1 instead of the H2 due to duplicated IDs.I thought disabling generating H1 ID may be a permanent solution, is there any way to do that?
If not possible, I can manually assign an ID for the H1 as a workaround.
Thanks!
5 stars and done!
One more question:
How can I make the plugin do not generate ID for H1?
When you have the same title and heading(usually a h2), it jumps to the top. This is usually happens when you write a question-answer article, with the same question as both title and a H2 heading.
I don’t include h1 in my toc, so disble auto-ID for h1 would be a solution.
Thanks!
Hi Marc,
Fantastic! I didn’t know that!
Thanks!
Forum: Networking WordPress
In reply to: remove trailing slash from sub-directory multisite@gappiah
Thanks for the reply but it does not work for me. The permalink is not enough for 301sForum: Plugins
In reply to: [The SEO Framework – Fast, Automated, Effortless.] canonical not generatedyes, it is the sitelink I talk about.
If you are a content-based website, I’m sure if you have a sitelink, your blog page would appear normally because of the value it has to help visitors. And google would choose to show blog in your sitelink in a priority.
if you a product based website, it is hard to say what to show as it is fully controlled by G.
Nevertheless, the topic is going off.
As long as TSF can index archive category pages, I’m fine.Great support as always, thanks Sybre!
- This reply was modified 3 years, 6 months ago by tolddsm.
Forum: Themes and Templates
In reply to: [GeneratePress] Show tags above titleHi,
thanks for the great support. It works!
Gotta learn some PHP now. ??
Forum: Themes and Templates
In reply to: [GeneratePress] Show tags above titleHi,
A small issue update.
The tag shows on all post page and archive page. It makes sense as the filter only rules out search page.
Can you update the filter to make it not display on post page too? It should only display on post archive page.
A simple design to show tags before title on a regular card-style post archive page is what we want.
Thanks, I’m not familiar with php.
- This reply was modified 3 years, 6 months ago by tolddsm.
Forum: Plugins
In reply to: [The SEO Framework – Fast, Automated, Effortless.] canonical not generatedupdate:
I.E. I use archive template for my blog page, but the blog page is not indexed by TSF. It would be weird to have no blog link to show as sitelinks in search result, is it?
I vote for supporting this feature. ??Forum: Plugins
In reply to: [The SEO Framework – Fast, Automated, Effortless.] canonical not generatedhi,
1. can I send to you via your contact form?
2. I fully agree.
But sometimes I would search “blog ahrefs” or “blog semrush” for a quick access. It is faster and they are also a section to display recent posts. They are acting more like a static page for news/blog section rather than a classic blog site archive which display posts by date.
For an original blog site, it has almost zero value for indexing the archive page.
But for a newer/commercial site, I think it has values. They act like a page that shows company news and other posts/blog content.