Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3416724
Table of content
Closed

Comments

  •  1
    Harsh started the conversation

    How can table of content be added automatically in the blog posts or any web page?

     I want table of content to be added automatically in all my blog posts, so how do I do that?

  •  2,610
    PenciDesign replied

    Hi,

    Please go to Appearance → Customize → Table of contents → General → Enable Support in Post Types: select "Post".

    Regards,
    PenciDesign.


  •  1
    Harsh replied

    Hello, 

    It did worked. I just need to know about two settings in "Table of Contents" - Maximum Level of Table of Contents, Link Anchor Prefix.

    What are the functions of these settings in "Table of Contents"?

    3553385692.png

    Attached files:  11.png

  •  2,610
    PenciDesign replied

    Hi,

    1. Maximum Level of Table of Contents: It allows you to control how many levels of headings or subheadings are included in the generated table of contents.

    For example, if you set the "Maximum Level of Table of Contents" to 3, the table of contents will only include main headings (e.g., H2 → H3 → H4). Any subheadings beyond this level will not be listed in the table of contents. This option is useful for controlling the depth and complexity of the table of contents, particularly for longer documents or articles with many subsections.

    2. This is a prefix text for the heading link on the table of contents. For example, the heading title name: "A good name", will add the link "#penci-a-good-name" and HTML ID name "penci-a-good-name".

    Regards,
    PenciDesign.


  •  1
    Harsh replied

    Hello, 

    Could you please explain 2nd point more breifly. I didn't understand it clearly.

    Also I want to know, whether the table of contents is adviced to be added just for the post or for the pages as well?

  •  2,610
    PenciDesign replied

    Hi,

    1. In your post content, if you add the table of content, the heading tag will add the link to help the visitor can scroll into this section faster.

    For example, the heading name "A good text", it will become: "https://example.com/post-link#penci-a-good-text".

    2. You should use TOC for posts only.

    Regards,
    PenciDesign.


  •  1
    Harsh replied

    okay got it.

    Thank you for the help!

  •  9
    littlepellizza replied

    Dear Penci will u add shortcode fot Toc ? , so i can use in different block and create a wikipedia style o in the sidebar


    Also possibility to change font o different style 

  •  2,610
    PenciDesign replied

    Hi @littlepellizza,

    Soledad theme already included the table of content shortcode, you insert the following content into the area you want to show:

    penci-toc

    Regards,
    PenciDesign.


  •  9
    littlepellizza replied

    thx i haven't seen this shortcode in any penci doc

    i try it but its make crash my site with 503 error!

    not so good  :|

    Will u add the possibility to change font and bold the child hierachy?

  •  2,610
    PenciDesign replied

    Hi @littlepellizza,

    You can change the font size by going to Appearance → Customize → Table of contents → Font Sizes & Colors.

    About the 503 error, please send me the error detail to [email protected]

    Regards,
    PenciDesign.



  •  9
    littlepellizza replied

    done

  •  9
    littlepellizza replied

    any news for my mail ?

  •  2,610
    PenciDesign replied

    Hi @littlepellizza,

    Please wait for me to check and reply via email.

    Regards,
    PenciDesign.