@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-paragraph-ids/>
  a sioc:Post ;
  dc:title "Using the plugin" ;
  dcterms:identifier 149787 ;
  dc:modified "2026-10-11T00:36:25Z"^^xsd:dateTime ;
  dc:created "2026-10-11T00:36:25Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-paragraph-ids/using-the-plugin/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded "<ul class=\"lh_portfolio-meta\"><li><strong>Part of:</strong> <a href=\"https://lhero.org/portfolio/lh-paragraph-ids/\">LH Paragraph IDs</a></li></ul><h2 class=\"wp-block-heading\">Linking to a paragraph</h2><p class=\"wp-block-paragraph\">View the page source, or use your browser&#8217;s developer tools, to find the id of the paragraph or heading you want, then add it to the page address after a <code>#</code>. Ids are numbered in order down the page for each kind of element, so <code>lh_element_id-p123-3</code> is the fourth paragraph of post 123 and <code>lh_element_id-h2123-0</code> its first second-level heading.</p><p class=\"wp-block-paragraph\">Because the numbers come from the position of each element, adding or removing a paragraph above one changes its id. For a link that must never change, give the block its own HTML anchor in the editor (Block settings, Advanced, HTML anchor): an element that already has an id keeps it.</p><h2 class=\"wp-block-heading\">Paragraph links</h2><p class=\"wp-block-paragraph\">The plugin can add a ¶ link at the end of each paragraph, pointing at that paragraph, so readers can copy a link without viewing the source. It is off by default; turn it on with a filter:</p><p class=\"wp-block-paragraph\"><code>add_filter( 'lh_paragraph_ids_link_enabled', '__return_true' );</code></p><h2 class=\"wp-block-heading\">Removing the plugin</h2><p class=\"wp-block-paragraph\">The ids are added each time a page is shown and nothing is saved to your content or database, so the plugin can be deactivated or deleted at any time. Links that point at a paragraph id will then open the page at the top.</p>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH Paragraph IDsLinking to a paragraphView the page source, or use your browser&#8217;s developer tools, to find the id of the paragraph or heading you want, then add it to the page address after a #. Ids are numbered in order down the page for each kind of element, so lh_element_id-p123-3 is the fourth paragraph of post 123 and lh_element_id-h2123-0 its first second-level heading.Because the numbers come from the position of each element, adding or removing a paragraph above one changes its id. For a link that must never change, give the block its own HTML anchor in the editor (Block settings, Advanced, HTML anchor): an element that already has an id keeps it.Paragraph linksThe plugin can add a ¶ link at the end of each paragraph, pointing at that paragraph, so readers can copy a link without viewing the source. It is off by default; turn it on with a filter:add_filter( 'lh_paragraph_ids_link_enabled', '__return_true' );Removing the pluginThe ids are added each time a page is shown and nothing is saved to your content or database, so the plugin can be deactivated or deleted at any time. Links that point at a paragraph id will then open the page at the top." ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
